23.2 C
New York
Monday, April 28, 2025

Animating in Frames: Repeating Picture Transition


In our final Movement Highlights assortment, I added a very wonderful reel by Joana Correia, a really expert movement designer. Her works are so considerate and searching her newest initiatives I stumbled upon one among her different reels wrapping up her final 12 months. Proper initially, there may be this:

This small excerpt showcases a very attention-grabbing sliced repetition impact, which impressed me to attempt one thing new: animating “frames” of the identical picture alongside a path. I’m undecided if that is any good, however for some purpose, I actually prefer it. It feels prefer it might match properly inside editorial design contexts.

It’s only a proof of idea, however I hope it sparks some new concepts for you too! 🙂

Configuration

There are higher methods to do that clearly, however since this can be a proof of idea and we would like to have the ability to present varied results in our demo, I made a decision to do it like this. So right here’s how the configuration works.

Every grid merchandise can override the worldwide animation settings by specifying data- attributes instantly within the HTML. This permits fine-tuning of transitions on a per-item foundation.

You possibly can customise the next choices for every .grid__item:

  • clipPathDirectiondata-clip-path-direction: Path for clip-path animation (top-bottom, bottom-top, left-right, right-left).
  • stepsdata-steps: Variety of mover parts created between grid merchandise and panel.
  • stepDurationdata-step-duration: Period (in seconds) of every mover animation step.
  • stepIntervaldata-step-interval: Delay (in seconds) between every mover’s animation begin.
  • rotationRangedata-rotation-range: Most random rotation (±worth, levels) utilized to movers.
  • wobbleStrengthdata-wobble-strength: Most random positional wobble (in pixels) throughout movement path technology.
  • moverPauseBeforeExitdata-mover-pause-before-exit: Pause period (in seconds) earlier than movers exit.
  • panelRevealEasedata-panel-reveal-ease: Easing perform used when revealing the panel.
  • gridItemEasedata-grid-item-ease: Easing perform for animating grid merchandise exits.
  • moverEnterEasedata-mover-enter-ease: Easing perform for movers getting into.
  • moverExitEasedata-mover-exit-ease: Easing perform for movers exiting.
  • panelRevealDurationFactordata-panel-reveal-duration-factor: Multiplier to regulate panel reveal animation timing.
  • clickedItemDurationFactordata-clicked-item-duration-factor: Multiplier to regulate clicked grid merchandise animation timing.
  • gridItemStaggerFactordata-grid-item-stagger-factor: Multiplier for staggered grid merchandise animations (primarily based on distance).
  • moverBlendModedata-mover-blend-mode: CSS mix-blend-mode to use to movers (regular, display screen, and so on.).
  • pathMotiondata-path-motion: Path movement sort: linear (straight) or sine (curved).
  • sineAmplitudedata-sine-amplitude: Peak of sine wave if utilizing sine path movement (in pixels).
  • sineFrequencydata-sine-frequency: Frequency of sine wave movement (greater = extra waves).

Instance

<determine class="grid__item"
        data-clip-path-direction="left-right"
        data-steps="8"
        data-rotation-range="20"
        data-path-motion="sine"
        data-sine-amplitude="60"
        data-sine-frequency="6.28">

  <div class="grid__item-image" model="background-image: url(property/img32.webp)"></div>
  
  <figcaption class="grid__item-caption">
    <h3>Aura — K21</h3>
    <p>Mannequin: Lily Cooper</p>
  </figcaption>
  
</determine>

This merchandise will fly with 8 movers, stronger rotation wobble, a sine wave path, and panel opening from left to proper.

Strive it out and play with it and I actually hope you take pleasure in it!



Supply hyperlink

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles