From 5a491d53d96fa897748308d6b3d5b19bb85b2df3 Mon Sep 17 00:00:00 2001 From: Sonny Le Date: Thu, 31 Oct 2024 10:16:17 +0700 Subject: [PATCH] Update configuration for Astroid Pro --- framework/library/astroid/Element/BaseElement.php | 11 ++--------- language/en-GB/en-GB.astroid.ini | 6 +++--- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/framework/library/astroid/Element/BaseElement.php b/framework/library/astroid/Element/BaseElement.php index 59459bd0..63a469f5 100644 --- a/framework/library/astroid/Element/BaseElement.php +++ b/framework/library/astroid/Element/BaseElement.php @@ -384,15 +384,8 @@ protected function _animation(): void if (!empty($animation_element)) { $this->addAttribute('data-animation-element', $animation_element); } - $animation_loop = $this->params->get('animation_loop', 0); - if (!empty($animation_loop)) { - $this->addAttribute('data-animation-loop', $this->params->get('animation_scrub', 0)); - } - $animation_easing = $this->params->get('animation_easing', 'power3'); - if ($animation_easing !== 'none' && $animation_easing !== 'steps') { - $animation_easing .= '.' . $this->params->get('animation_easing_type', 'out'); - } - $this->addAttribute('data-animation-ease', $animation_easing); + $this->addAttribute('data-animation-loop', $this->params->get('animation_loop', 0)); + $this->addAttribute('data-animation-stagger', $this->params->get('animation_stagger', 200)); } $document->loadAnimation(); } diff --git a/language/en-GB/en-GB.astroid.ini b/language/en-GB/en-GB.astroid.ini index a5214cf1..909a33b3 100644 --- a/language/en-GB/en-GB.astroid.ini +++ b/language/en-GB/en-GB.astroid.ini @@ -873,9 +873,9 @@ ASTROID_ANIMATION_DELAY_DESC="Animation delay time in millisecond." ASTROID_ANIMATION_DURATION="Animation Duration" ASTROID_ANIMATION_DURATION_DESC="Animation Duration time in millisecond." ASTROID_ANIMATION_LOOP="Animation Loop" -ASTROID_ANIMATION_LOOP_DESC="Links the progress of the animation directly to the scrollbar so it acts like a scrubber." -ASTROID_ANIMATION_SCRUB_TIME="Scrub Time (s)" -ASTROID_ANIMATION_SCRUB_TIME_DESC="The amount of time (in seconds) that the playhead should take to "catch up", so scrub: 0.5 would cause the animation's playhead to take 0.5 seconds to catch up with the scrollbar's position. It's great for smoothing things out." +ASTROID_ANIMATION_LOOP_DESC="Allow animation to reload on every scroll on." +ASTROID_ANIMATION_STAGGER_TIME="Stagger Time (s)" +ASTROID_ANIMATION_STAGGER_TIME_DESC="If you haven't tried creating staggered animations in Astroid yet, you're in for a treat - Staggers are totally configurable and SUPER powerful." ASTROID_ANIMATION_EASING="Animation Easing" ASTROID_ANIMATION_EASING_DESC="Easing is the primary way to change the timing of your animation. Simply changing the ease can adjust the entire feel and personality of your animation." ASTROID_ANIMATION_EASING_TYPE="Animation Easing Type"