댓글 검색 목록

[javascript] 페이지 스크롤의 컨텐츠에 애니메이션을 적용하는 JavaScript 라이브러리.

페이지 정보

작성자 운영자 작성일 20-06-13 11:13 조회 783 댓글 0

페이지 스크롤의 컨텐츠에 애니메이션을 적용하는 JavaScript 라이브러리.



https://mamunhpath.github.io/josh.js/ 


https://github.com/mamunhpath/josh.js 


<div
    class="element josh-js"
    data-josh-anim-name="lightSpeedInRight"
    data-josh-duration="1500ms"
    data-josh-anim-delay="3.5s"
    data-josh-iteration="infinite"
>
    Written on ES6
</div>
const josh = new Josh({
    // DOM CSS class to Animate, default is "josh-js"
    initClass: "josh-js",

    // Animation CSS class from Animate.css library
    animClass: "animate__animated",

    // Element distance of viewport to triggering the animation. default is 0.2 means 20% of element view animation will trigger
    offset: 0.2,

    // Animation will trigger on Mobile or not. Default is true
    animateInMobile: true,

    // Animation will trigger on newly added element or not. Default is false
    onDOMChange: false,
  });


댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.