Defines new @keyframes with given id and creates related class of same name to configure given animation opts. Only the duration option is given a default value (250ms), all others are optional.
@keyframes
id
opts
duration
css( animation( "fadein", { delay: "0.5s" }, { opacity: 0 }, { opacity: 1 } ) );
@keyframes fadein { 0% { opacity: 0; } 100% { opacity: 1; } } .fadein { animation-duration: 250ms; animation-name: fadein; animation-delay: 0.5s; }
animation name
animation config options
keyframes
Generated using TypeDoc
Defines new
@keyframes
with givenid
and creates related class of same name to configure given animationopts
. Only theduration
option is given a default value (250ms), all others are optional.css( animation( "fadein", { delay: "0.5s" }, { opacity: 0 }, { opacity: 1 } ) );
@keyframes fadein { 0% { opacity: 0; } 100% { opacity: 1; } } .fadein { animation-duration: 250ms; animation-name: fadein; animation-delay: 0.5s; }