“AOS -Animation” Code-Antworten

AOS -Animation

<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
<script>
AOS.init({
	duration: 1200,
});
</script>
Fierce Fish

AOS -Animation

npm i aos — save //installation
//import 
import AOS from "aos";
import "aos/dist/aos.css";

//useEffect
useEffect(() => {
    AOS.init();
    AOS.refresh();
  }, []);

//example 
data-aos="fade-up"
@iinaamasum

AOS -Animation

// In your terminal
yarn add aos@next or npm install --save aos@next

// In your JS file
import AOS from 'aos';
import 'aos/dist/aos.css';

AOS.init();

// then, you can add data-aos attributes in your html
Lioruby

AOS -Animation

<div data-aos="zoom-in-right"></div>
Evil Elephant

AOS -Animation

bower install aos --save
Obnoxious Ocelot

AOS -Animation

yarn add aos
Obnoxious Ocelot

Ähnliche Antworten wie “AOS -Animation”

Fragen ähnlich wie “AOS -Animation”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen