Skip to content

Commit

Permalink
Update configuration for Astroid Pro
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Oct 31, 2024
1 parent 38486bb commit 5a491d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
11 changes: 2 additions & 9 deletions framework/library/astroid/Element/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
6 changes: 3 additions & 3 deletions language/en-GB/en-GB.astroid.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5a491d5

Please sign in to comment.