aboutsummaryrefslogtreecommitdiffstats
path: root/htdocs/src/js/app.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-26 17:23:42 +0200
committerArmand Philippot <git@armandphilippot.com>2021-10-26 17:23:42 +0200
commit1d272eac38ebb310e360891a3a717447a1d0547a (patch)
tree40cb4ccea0aa41272d40a2d8ff5a4224905cf699 /htdocs/src/js/app.js
parent9f24f7421860a0ca14aa63f551797979e8dc1bf9 (diff)
fix(animation): add fade-in animation to project details on large vw
The animation was not triggered because I forgot to add the class in the right place. I also increase a little the animation timing.
Diffstat (limited to 'htdocs/src/js/app.js')
-rw-r--r--htdocs/src/js/app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/htdocs/src/js/app.js b/htdocs/src/js/app.js
index afc766b..b605583 100644
--- a/htdocs/src/js/app.js
+++ b/htdocs/src/js/app.js
@@ -185,6 +185,7 @@ function getProjectDetails(project) {
title.classList.add('project-details__title');
title.textContent = `About ${project.name}`;
details.classList.add('project-details');
+ if (!isSmallVw()) details.classList.add('fade-in');
details.replaceChildren(title, description, ...techList, ...reposList);
return details;