keyframes

package
v0.0.0-...-958e9d3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keyframe

type Keyframe struct {
	Sel    Selector
	Styles []KeyframeStyler
}

type KeyframeStyler

type KeyframeStyler interface {
	AddTo(m map[string]string)
}

type Keyframes

type Keyframes struct {
	Name   animationName.Type
	Frames []Keyframe
	// contains filtered or unexported fields
}

Keyframes creates @keyframes used in animation NOTE currently keyframes are only inserted old keyframes are not removed and are intended to be create at the start of the app and never changed. However, if keyframes are used in a dynamic way (changing after startup) then there is a possible out of memory issue.

func (*Keyframes) Mount

func (k *Keyframes) Mount()

type Selector

type Selector string
const (
	From Selector = "from"
	To   Selector = "to"
)

func Percent

func Percent(percent interface{}) Selector

Jump to

Keyboard shortcuts

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