Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 678 Vote(s) - 3.52 Average
  • 1
  • 2
  • 3
  • 4
  • 5
To make an background images autoplay

#1
I've been trying to make a slider with the functionality of hover on Icon the background images should be changed. I've achieved this thing but One more thing to be add-in this slider that the background images also should be autoplay.

I've made this slider in WordPress project using Elementor and made the custom Slider using javascript dom manipulation.

How can I achieve both things like first autoplay the background images and also when anyone hovers on the icon the background image also should be changed?

JavaScript code for running the functionality of on icon hover to change the background image.



<script>



const backgroundChange = document.querySelector('#hero-section');

const icon1 = document.querySelector('.icon-1');

icon1.addEventListener('mouseover', function(){
backgroundChange.style.backgroundImage = 'url(

[To see links please register here]

)'
});

const icon2 = document.querySelector('.icon-2');

icon2.addEventListener('mouseover', function(){
backgroundChange.style.backgroundImage = 'url(

[To see links please register here]

)'
});


const icon3 = document.querySelector('.icon-3');

icon3.addEventListener('mouseover', function(){
backgroundChange.style.backgroundImage = 'url(

[To see links please register here]

)'
});

const icon4 = document.querySelector('.icon-4');

icon4.addEventListener('mouseover', function(){
backgroundChange.style.backgroundImage = 'url(

[To see links please register here]

)'
});

const icon5 = document.querySelector('.icon-5');

icon5.addEventListener('mouseover', function(){
backgroundChange.style.backgroundImage = 'url(

[To see links please register here]

)'
});

const icon6 = document.querySelector('.icon-6');

icon6.addEventListener('mouseover', function(){
backgroundChange.style.backgroundImage = 'url(

[To see links please register here]

)'
});


backgroundChange.style.autoPlay = 'true';





</script>

<style>
#hero-section{
transition: background 0.4s linear;
}





</style>


Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through