Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not going from right to left #43

Open
Kozyge opened this issue Aug 23, 2023 · 0 comments
Open

Not going from right to left #43

Kozyge opened this issue Aug 23, 2023 · 0 comments

Comments

@Kozyge
Copy link

Kozyge commented Aug 23, 2023

The website : wita.cfolks.pl

So ive spent all day on this already. Im trying to make Marquee 3000 go from right to left. On a section containing icons. The html structure looks like this :

This is my javascript:
`// Enqueue the Marquee3k script
function enqueue_marquee3k_script() {
wp_enqueue_script('marquee3k', get_template_directory_uri() . '/js/marquee3k.min.js', array(), null, true);
}
add_action('wp_enqueue_scripts', 'enqueue_marquee3k_script');

// Add inline script to initialize the Marquee3k library
function add_inline_script_for_marquee() {
echo '
<script>
document.addEventListener("DOMContentLoaded", function() {
Marquee3k.init();
});
</script>
';
}
add_action('wp_footer', 'add_inline_script_for_marquee');`

I am using it in code snippets.

With the following attributes it should go from right to left. I am using marquee3k.min.js and i am using Elementor page builder.

This is the website wita.cfolks.pl , its a purple section, cant miss it, its moving.
I tried adding attributes inside the element which are:
data-speed|1
data-pausable|true
data-reverse|false

Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant