Documentation ¶
Overview ¶
Package scrollanimations is for creating animations that are either triggered by or tied to the scroll offset of a scroll container.
Index ¶
- type ScrollDirection
- type ScrollTimeline
- func (_this *ScrollTimeline) EndScrollOffset() string
- func (_this *ScrollTimeline) Fill() webani.FillMode
- func (_this *ScrollTimeline) Orientation() ScrollDirection
- func (_this *ScrollTimeline) ScrollSource() *dom.Element
- func (_this *ScrollTimeline) StartScrollOffset() string
- func (_this *ScrollTimeline) TimeRange() *Union
- type ScrollTimelineAutoKeyword
- type ScrollTimelineOptions
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScrollDirection ¶
type ScrollDirection int
enum: ScrollDirection
const ( BlockScrollDirection ScrollDirection = iota InlineScrollDirection HorizontalScrollDirection VerticalScrollDirection )
func ScrollDirectionFromJS ¶
func ScrollDirectionFromJS(value js.Value) ScrollDirection
ScrollDirectionFromJS is converting a javascript value into a ScrollDirection enum value.
func (*ScrollDirection) JSValue ¶
func (this *ScrollDirection) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (ScrollDirection) Value ¶
func (this ScrollDirection) Value() string
Value is converting this into javascript defined string value
type ScrollTimeline ¶
type ScrollTimeline struct {
webani.AnimationTimeline
}
class: ScrollTimeline
func NewScrollTimeline ¶
func NewScrollTimeline(options *ScrollTimelineOptions) (_result *ScrollTimeline)
func ScrollTimelineFromJS ¶
func ScrollTimelineFromJS(value js.Value) *ScrollTimeline
ScrollTimelineFromJS is casting a js.Value into ScrollTimeline.
func ScrollTimelineFromWrapper ¶
func ScrollTimelineFromWrapper(input core.Wrapper) *ScrollTimeline
ScrollTimelineFromJS is casting from something that holds a js.Value into ScrollTimeline.
func (*ScrollTimeline) EndScrollOffset ¶
func (_this *ScrollTimeline) EndScrollOffset() string
EndScrollOffset returning attribute 'endScrollOffset' with type string (idl: DOMString).
func (*ScrollTimeline) Fill ¶
func (_this *ScrollTimeline) Fill() webani.FillMode
Fill returning attribute 'fill' with type webani.FillMode (idl: FillMode).
func (*ScrollTimeline) Orientation ¶
func (_this *ScrollTimeline) Orientation() ScrollDirection
Orientation returning attribute 'orientation' with type ScrollDirection (idl: ScrollDirection).
func (*ScrollTimeline) ScrollSource ¶
func (_this *ScrollTimeline) ScrollSource() *dom.Element
ScrollSource returning attribute 'scrollSource' with type dom.Element (idl: Element).
func (*ScrollTimeline) StartScrollOffset ¶
func (_this *ScrollTimeline) StartScrollOffset() string
StartScrollOffset returning attribute 'startScrollOffset' with type string (idl: DOMString).
func (*ScrollTimeline) TimeRange ¶
func (_this *ScrollTimeline) TimeRange() *Union
TimeRange returning attribute 'timeRange' with type Union (idl: Union).
type ScrollTimelineAutoKeyword ¶
type ScrollTimelineAutoKeyword int
enum: ScrollTimelineAutoKeyword
const (
AutoScrollTimelineAutoKeyword ScrollTimelineAutoKeyword = iota
)
func ScrollTimelineAutoKeywordFromJS ¶
func ScrollTimelineAutoKeywordFromJS(value js.Value) ScrollTimelineAutoKeyword
ScrollTimelineAutoKeywordFromJS is converting a javascript value into a ScrollTimelineAutoKeyword enum value.
func (*ScrollTimelineAutoKeyword) JSValue ¶
func (this *ScrollTimelineAutoKeyword) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (ScrollTimelineAutoKeyword) Value ¶
func (this ScrollTimelineAutoKeyword) Value() string
Value is converting this into javascript defined string value
type ScrollTimelineOptions ¶
type ScrollTimelineOptions struct { ScrollSource *dom.Element Orientation ScrollDirection StartScrollOffset string EndScrollOffset string TimeRange *Union Fill webani.FillMode }
dictionary: ScrollTimelineOptions
func ScrollTimelineOptionsFromJS ¶
func ScrollTimelineOptionsFromJS(value js.Value) *ScrollTimelineOptions
ScrollTimelineOptionsFromJS is allocating a new ScrollTimelineOptions object and copy all values in the value javascript object.
func (*ScrollTimelineOptions) JSValue ¶
func (_this *ScrollTimelineOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values