feat: add Sal.js scroll animations

This commit is contained in:
Stefan Imhoff
2023-06-10 20:31:47 +02:00
parent bb32c6494c
commit f6205c1e4a
24 changed files with 195 additions and 37 deletions

View File

@@ -1,3 +1,25 @@
const animationType = 'slide-up';
const delay = 300;
const duration = 800;
const easing = 'ease-out-sine';
export const site = {
title: 'Stefan Imhoff',
description: 'Front-End Web Developer from Hamburg, Germany',
url: 'https://www.stefanimhoff.de',
author: 'Stefan Imhoff',
tagline: 'Front-End Web Developer • Designer • Minimalist • Japanophile',
faviconPath: '/assets/images/branding/favicons/',
twitter: '@kogakure',
};
export const animation = {
'data-sal': animationType,
'data-sal-duration': duration,
'data-sal-easing': easing,
};
export const animationDelay = {
...animation,
'data-sal-delay': delay,
};