diff --git a/package.json b/package.json index 0e16f18..9ab961f 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "react-chartjs-2": "^5.2.0", "react-dom": "npm:@preact/compat@^17.1.2", "reading-time": "^1.5.0", + "sal.js": "^0.8.5", "sharp": "^0.32.1", "tailwindcss": "^3.3.2", "unist-util-visit": "^4.1.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2c18cd6..62f47c1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -84,6 +84,9 @@ dependencies: reading-time: specifier: ^1.5.0 version: 1.5.0 + sal.js: + specifier: ^0.8.5 + version: 0.8.5 sharp: specifier: ^0.32.1 version: 0.32.1 @@ -11357,6 +11360,11 @@ packages: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} dev: true + /sal.js@0.8.5: + resolution: {integrity: sha512-KUb3fNrVZ1oWxxkEAfQfQ4Mrd910yboIRHqsvioBkulQInqMVeSMah+J5f7ch7KXFLicKlAaE0TzTsG/eJ02Dg==} + engines: {node: '>=12.0.0'} + dev: false + /sass-formatter@0.7.6: resolution: {integrity: sha512-hXdxU6PCkiV3XAiSnX+XLqz2ohHoEnVUlrd8LEVMAI80uB1+OTScIkH9n6qQwImZpTye1r1WG1rbGUteHNhoHg==} dependencies: diff --git a/src/components/GalleryDetail.astro b/src/components/GalleryDetail.astro index bad693f..efe367c 100644 --- a/src/components/GalleryDetail.astro +++ b/src/components/GalleryDetail.astro @@ -1,6 +1,8 @@ --- import cx from 'classnames'; +import { animation, animationDelay } from '../data/site'; + import Picture from './Picture.astro'; import { Headline } from '.'; @@ -19,6 +21,7 @@ const imageLength = entry.data.images.length;