From 8aab2813dad15a311c65f0f8a04ee096b02dd877 Mon Sep 17 00:00:00 2001 From: Carmine De Rosa Date: Sat, 27 Jan 2018 13:25:28 +0100 Subject: [PATCH] complete animations --- js/plans.js | 6 ++++-- plans.php | 19 +++++++++++++------ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/js/plans.js b/js/plans.js index 984f3c6..5d5b5db 100644 --- a/js/plans.js +++ b/js/plans.js @@ -49,8 +49,10 @@ $(document).ready(()=>{ $('#notify1')[0].play() show.fadeIn(400,()=>{ - offset = show.offset().top - content.offset().top - 20 - firstChild.animate({'margin-top': '-' + offset},400) + if(show.hasClass('scroll')){ + offset = show.offset().top - content.offset().top - 20 + firstChild.animate({'margin-top': '-' + offset},400) + } }) }) diff --git a/plans.php b/plans.php index 9d65b03..9d31760 100755 --- a/plans.php +++ b/plans.php @@ -23,16 +23,20 @@ -
@@ -48,12 +52,15 @@ Il modulo "differenze culturali" è disponibile.
- +
-