animation

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorCycle

func ColorCycle(sel string, colors []string, duration time.Duration)

ColorCycle iterates the element's background color through the provided list over the given duration.

func Fade

func Fade(sel string, from, to float64, duration time.Duration)

Fade transitions the element's opacity from 'from' to 'to'.

func Scale

func Scale(sel string, from, to float64, duration time.Duration)

Scale scales the element from the starting factor to the ending factor.

func Translate

func Translate(sel string, fromX, fromY, toX, toY float64, duration time.Duration)

Translate moves the element selected by sel from the starting coordinates to the destination using a translate transform.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL