animation

package
v0.1.99 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnimatedBackground

func AnimatedBackground(anim *animation.VisibilityAnimation, color graphics.Color, shape background.Shape) ui.Modifier

AnimatedBackground creates a modifier that paints a background with alpha scaled by animation.

func AnimatedHeight

func AnimatedHeight(anim *animation.VisibilityAnimation, maxHeight int) ui.Modifier

AnimatedHeight animates the height of the content based on the VisibilityAnimation. It clips the content as it grows/shrinks.

func AnimatedWidth

func AnimatedWidth(anim *animation.VisibilityAnimation, maxWidth int) ui.Modifier

func NewAnimatedHeightNode

func NewAnimatedHeightNode(element AnimatedHeightElement) node.ChainNode

Types

type AnimatedBackgroundElement

type AnimatedBackgroundElement struct {
	Anim  *animation.VisibilityAnimation
	Color graphics.Color
	Shape background.Shape
}

func (AnimatedBackgroundElement) Create

func (e AnimatedBackgroundElement) Create() Node

func (AnimatedBackgroundElement) Equals

func (e AnimatedBackgroundElement) Equals(other Element) bool

func (AnimatedBackgroundElement) Update

func (e AnimatedBackgroundElement) Update(node Node)

type AnimatedBackgroundNode

type AnimatedBackgroundNode struct {
	node.ChainNode
	// contains filtered or unexported fields
}

func NewAnimatedBackgroundNode

func NewAnimatedBackgroundNode(element AnimatedBackgroundElement) *AnimatedBackgroundNode

type AnimatedHeightElement

type AnimatedHeightElement struct {
	Anim      *animation.VisibilityAnimation
	MaxHeight int // Optional max height constraint, 0 means unconstrained (or fill max)

}

func (AnimatedHeightElement) Create

func (e AnimatedHeightElement) Create() Node

func (AnimatedHeightElement) Equals

func (e AnimatedHeightElement) Equals(other Element) bool

func (AnimatedHeightElement) Update

func (e AnimatedHeightElement) Update(node Node)

type AnimatedHeightNode

type AnimatedHeightNode struct {
	node.ChainNode
	// contains filtered or unexported fields
}

type AnimatedWidthElement

type AnimatedWidthElement struct {
	Anim     *animation.VisibilityAnimation
	MaxWidth int
}

func (AnimatedWidthElement) Create

func (e AnimatedWidthElement) Create() Node

func (AnimatedWidthElement) Equals

func (e AnimatedWidthElement) Equals(other Element) bool

func (AnimatedWidthElement) Update

func (e AnimatedWidthElement) Update(node Node)

type AnimatedWidthNode

type AnimatedWidthNode struct {
	node.ChainNode
	// contains filtered or unexported fields
}

func NewAnimatedWidthNode

func NewAnimatedWidthNode(element AnimatedWidthElement) *AnimatedWidthNode

type Element

type Element = modifier.Element

type Node

type Node = node.Node

Jump to

Keyboard shortcuts

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