Swink

RXLAB_VIDEO
This video is part of the official comprehensive video course about Duik Ángela

Swink stands for swing or blink1. It can be used to make a property oscillate between two values, with many options to control the interpolation* between these values. For example, it makes it easy to animate a pendulum or a light blinking.


The first pendulum clock, drawing from Horologium,
Christiaan Huygens, 1658
Public domain.

  1. Select the properties
  2. Click the Swink button
  3. Choose one of the presets

The choice between Swing or Blink just change the default values, the same effect is created in both cases.

Tip

When you’ve applied the Swink on some properties and then want to use the same Swink on other properties, you can just copy and paste the expression in the new properties.

Effect

The Swink can be adjusted in the effects of the first selected layer.

Duik automatically sets the two values A and B to oscillate around the current value of the selected property. You can adjust these values as you wish, or even animate them.

While the frequency changes the speed of the oscillation, the Cycle offset moves the whole oscillation in time to let you adjust exactly the value from which it starts at the beginning of the composition. This offset is set as a percentage of a complete cycle.

You can use the A/B ratio to let the oscillation spend more time on one or the other value. A ratio higher than 50 % makes the time spent on the A value longer than on the B value, and vice versa.

When the Plateau is set to 0 %, the oscillation never stops; with a higher value, the oscillation will stop some time on both values.

Finally, you can adjust the interpolation* between the A and B values:

With the Smooth, Natural, Slow down and Speed up interpolations, you can use the Rate value to adjust the easing (acceleration and deceleration rate) of the motion.

META


  1. We’ve had a hard time translating this term in other languages, but we’ve found Clignancement for “Clignottement ou balancement” in French, and Parpalancear for “Parpadear o balancear” in Spanish. If you’d like to play with us and help translate Duik, come to translate.rxlab.io