skip to Main Content

Html – How to trigger multiple animations when the user clicks on the <a> (link)

I have this Html code and I want all the animations to be played after clicking on the link : document.querySelector('.play').addEventListener('click', function() { document.querySelector('.trans-up').style.animationPlayState = 'running'; document.querySelector('.trans-mid').style.animationPlayState = 'running'; document.querySelector('.trans-down').style.animationPlayState = 'running'; }); .trans-up { animation: trans-up-anim 1.8s forwards; }…

VIEW QUESTION

Css – Where is the white background coming from when using mix-blend-mode?

body { background: #060f11; } <div style="position:relative;z-index:0"> <div style="background:#060f11"> <div style="background:linear-gradient(0deg, rgba(0,0,0,1), rgba(0,0,0,0) 50%), linear-gradient(90deg, rgba(0,0,0,1), rgba(0,0,0,0) 50%), linear-gradient(180deg, rgba(0,0,0,1), rgba(0,0,0,0) 50%), linear-gradient(270deg, rgba(0,0,0,1), rgba(0,0,0,0) 50%), url(&quot;data:image/svg+xml,%3Csvg viewBox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E&quot;);filter:contrast(200%)…

VIEW QUESTION
Back To Top
Search