/    Sign up×
Community /Pin to ProfileBookmark

looping animation out of view

This is probably a novice question …
im using css rotate to make a few elements infinite loop on the Hero section of a home page.
considering page performance, are the animations still effect when the page is scrolled down- so the animations
are no longer visible?
If so, should i stop the loop when scrolled out of view or even use Display:none?
maybe Opacity:0 so i wont effect the DOM.
Does the same apply to looping GIFs or background videos?

to post a comment
CSS

0Be the first to comment 😎

×

Success!

Help @SHAYJOSH spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...