mirror of
https://github.com/Start9Labs/start9.com.git
synced 2026-03-30 12:11:58 +00:00
started scrolling animations at 75%; added lazy loading to images
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const eleventySass = require("eleventy-sass");
|
||||
//const gsap = require('gsap');
|
||||
const lazyImagesPlugin = require('eleventy-plugin-lazyimages');
|
||||
|
||||
module.exports = function (eleventyConfig) {
|
||||
|
||||
@@ -18,6 +19,11 @@ module.exports = function (eleventyConfig) {
|
||||
//plugins
|
||||
eleventyConfig.addPlugin(eleventySass);
|
||||
|
||||
eleventyConfig.addPlugin(lazyImagesPlugin, {
|
||||
imgSelector: 'img:not(.unlazy)', // custom image selector
|
||||
//cacheFile: '', // don't cache results to a file
|
||||
});
|
||||
|
||||
return {
|
||||
dir: { input: "src", output: "_site", data: "_data" },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user