404
The page you are looking for was not found!
+ Homediff --git a/components/scroll/scroll.css b/components/scroll/scroll.css index b6f99a6..2e47f71 100644 --- a/components/scroll/scroll.css +++ b/components/scroll/scroll.css @@ -12,8 +12,53 @@ right: 5%; z-index: 7; width: 90%; + bottom: -200px; +} + +#scroll-indicator.show-scroll { + animation: pop-in 0.5s; bottom: 5%; - display: none; +} + +#scroll-indicator.hide-scroll { + animation: pop-out 0.5s; + bottom: -200px; +} + +@keyframes pop-in { + 0% { + bottom: -200px; + } + + 70% { + bottom: 6.5%; + } + + 80% { + bottom: 6%; + } + + 100% { + bottom: 5%; + } +} + +@keyframes pop-out { + 0% { + bottom: 5%; + } + + 25% { + bottom: 6.5% + } + + 35% { + bottom: 6%; + } + + 100% { + bottom: -200px; + } } .content { diff --git a/components/scroll/scroll.js b/components/scroll/scroll.js index c391a2b..ac6cd1d 100644 --- a/components/scroll/scroll.js +++ b/components/scroll/scroll.js @@ -1,82 +1,84 @@ window.scrollHint = ( maxScroll ) => { - $( () => { - let isShowing = false; - const el = document.getElementById( 'scroll-indicator' ); - if ( !el ) { - throw new Error( 'There is no element with ID "scroll-indicator" present on DOM' ); - } - el.innerHTML = ` -
+ Free & Open Source Event Management & Ticketing Solution
+ + +