Lax.js Versions Save

Simple & lightweight (<4kb gzipped) vanilla JavaScript library to create smooth & beautiful animations when you scroll.

v2.0.3

3 years ago
  • Breaking change, preset values are now delaminated using : instead of - so that negative values cam be used. For example lax_preset_spin-400-360 should now be written as lax_preset_spin:400:360
  • Bug fixes and documentation improvements

v2.0.2

3 years ago
  • Replaced document.body.scrollTop and document.body.scrollLeft with window.scrollY and window.scrollX in example and documentation

v2.0.1

3 years ago

Lax.js 2.0 has been completely re-written with a focus on modularity and flexibility giving you more tools to create awesome animations.

  • New javascript animation syntax, allowing for more advanced effect combos
  • Use any value to drive animations, for example mouse position, time of day .. and of course scroll!
  • Animations can be given inertia when scrolling
  • Create custom CSS bindings
  • Animation easings
  • And much more..

v1.2.5

4 years ago

v1.2.4

4 years ago

v1.2.3

5 years ago

Added rotateX and rotateY transforms

v1.2.2

5 years ago

Fixed a problem with lax.addElement fixing #36

v1.2.1

5 years ago
  • Fixed issue when resizing window

v1.2.0

5 years ago

v1.1.0

5 years ago
  • changed data-lax-optimize to data-lax-use-gpu
  • now use data-lax-optimize for optimising elements off screen
  • added background position key
  • added swing and speedy presets
  • fixed read me