Skip to content

gilbox/kapi-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kapi-scroll

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

Setup

Usage

Basic Example

<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>

Override element-wide easing at a specific keyframe

<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]

Formulas

<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

About

rekapi-based angular directive for scroll-based animations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •