WIP Animations all over site

- Run a transition In for each page
- Involve a "loader" panel on page change
- TODO: tweak the animations and finish the concept
This commit is contained in:
2020-03-06 14:22:51 +01:00
parent cd1033f97b
commit 9ffc210c02
27 changed files with 827 additions and 296 deletions

View File

@@ -3,12 +3,11 @@
import {
site,
currentLocation,
currentPhotos
currentPhotos,
pageReady,
pageTransition
} from '../utils/store'
// Depencencies
import AOS from 'aos'
// Components
import IconArrow from '../atoms/IconArrow'
import TitleSite from '../atoms/TitleSite'
@@ -17,6 +16,11 @@
import Footer from '../organisms/Footer'
import SocialMetas from '../utils/SocialMetas'
// Animations
import { animateIn } from '../animations/page'
pageTransition.onAnimationEnd = animateIn
// Reset current location if existing
$: {
if ($currentLocation) currentLocation.set()
@@ -25,13 +29,11 @@
/*
** Run code on browser only
** Run code when mounted
*/
onMount(() => {
// Scroll apparitions
if (process.browser) {
AOS.init()
}
// Page is loaded
pageReady.set(true)
})
</script>
@@ -57,7 +59,7 @@
<TitleSite />
</div>
<div class="page__description style-description">
<div class="page__description page__part style-description">
<p>{$site.explore_globe}</p>
</div>
</div>