⚠️ Fix most animations/transitions performance issues
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- Basically add `will-change` to CSS elements to enable GPU animations, less choppy, more sassy - Use requestAnimationFrame over setTimeout - Avoid repaints AMAP
This commit is contained in:
@@ -8,9 +8,10 @@ let baseURL
|
||||
const pages = ['']
|
||||
|
||||
// Get routes and push it to array
|
||||
const routesExclude = ['sitemap', 'index', 'location', 'viewer']
|
||||
fs.readdirSync('./src/routes').forEach(file => {
|
||||
const filename = file.split('.')[0]
|
||||
if (!file.startsWith('.') && !filename.startsWith('_') && ['sitemap', 'index', 'location', 'viewer'].indexOf(filename) === -1) {
|
||||
if (!file.startsWith('.') && !filename.startsWith('_') && routesExclude.indexOf(filename) === -1) {
|
||||
pages.push(filename)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user