Closed luni-moon closed 2 years ago
You can already do this, you just set the opacity property as what you're animating. Set direction: 'alternate'
if you like so it fades in and then back out as it loops. You can animate any CSS property. Some aren't very performant, but opacity is one of the faster ones.
You can already do this, you just set the opacity property as what you're animating. Set
direction: 'alternate'
if you like so it fades in and then back out as it loops. You can animate any CSS property. Some aren't very performant, but opacity is one of the faster ones.
Ah, ok, thanks!
Is your feature request related to a problem? Please describe. I cannot get animejs to just simply fade an animation in and/or out
Describe the solution you'd like Something like jQuery can do:
(Which I used, since I could not get animejs to do so.) (You can see an example of this code at: blinking-terminal.up.railway.app) Describe alternatives you've considered N/A
Additional context If possible, make an option to have it loop indefinitely (with the:
loop: true
option).