{"repo":"versoly/taos","free":true,"listed":false,"github":"https://github.com/versoly/taos","clone":"git clone https://github.com/versoly/taos.git","description":"Tailwind CSS Animation on Scroll - A simple and small (600 bytes) library to help animate elements while scrolling using responsive Tailwind CSS JIT utility classes.","language":"JavaScript","stars":338,"topics":["animation-on-scroll","tailwindcss"],"license":"MIT","category":"ui-components","readme_excerpt":"TAOS Tailwind CSS Animation on Scroll - A simple and small (600 bytes) library to help animate elements while scrolling using responsive Tailwind CSS utility classes. React & Vue supported. ------ ------ Table of Contents - Table of Contents - Demo - Getting started - Installation - Add JavaScript scripts - TAOS Frequently Asked Questions - JS Frameworks - Inspiration - Community Demo To view 20+ examples of TAOS in action go to versoly.com/taos. Getting started TAOS can be included as a plugin into an existing Tailwind CSS project and will allow you to add responsive Tailwind CSS utility classes for animation on scroll. Installation Install the plugin from npm: Then add to your main style.css file: If you are still using Tailwind CSS v3 , add the plugin and safelist classes to your tailwind.config.js file: Add JavaScript scripts Add the CDN script or download and paste before the closing tag Add script in TAOS Frequently Asked Questions Why do you use MutationObserver instead of IntersectionObserver MutationObserver is a cleaner solution to check if the element is in view on page load and refresh. With IntersectionObserver it would require more code on top just to handle that part. JS Frameworks - React - Vue Inspiration - AOS: is a great library and works by using custom classes such as aos-animate to animate elements. - Tailwind: created an easy to use utility library that is easily extendable and flexible. Their variant and just in time compiler changed the game for devel","default_branch":null,"files":null,"tree":[],"storefront":"/r/versoly","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/versoly/taos/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}