rekapi-based angular directive for scroll-based animations
DEPRECATION WARNING: All of the kapi-scroll features have been rolled into spark-scroll. This project is abandoned
- Simple Setup: see this plunker
- RequireJS Setup: see this plunker
<h1 kapi-scroll="::{
ease:'easeOutQuad',
120:{opacity:'0'},
121:{opacity:'0.8', top:'151px', color:'#fff'},
140:{opacity:'1.0', top:'0px', color:'#444'}
}">
This Title is Kapimated
</h1><h1 kapi-scroll="::{
ease:'easeOutQuad',
120:{opacity:'0'},
121:{opacity:'0.8', top:'151px', color:'#fff'},
140:{opacity:'1.0', top:'0px', color:'#444', ease: 'linear'}
}">
This Title is Kapimated
</h1>The title will use easeOutQuad in all cases except for the scroll position range [121, 141]
<h1 kapi-scroll="::{
ease:'easeOutQuad',
'top+10':{opacity:'0'},
center:{opacity:'0.8', top:'151px', color:'#fff'},
'bottom-10':{opacity:'1.0', top:'0px', color:'#444', ease: 'linear'}
}">
This Title is Kapimated
</h1>Learn more about formulas at spark-scroll