webapi: github.com/gowebapi/webapi/css/scrollanimations Index | Files

package scrollanimations

import "github.com/gowebapi/webapi/css/scrollanimations"

Package scrollanimations is for creating animations that are either triggered by or tied to the scroll offset of a scroll container.

Index

Package Files

doc.go scrollanimations.go

type ScrollDirection Uses

type ScrollDirection int

enum: ScrollDirection

const (
    BlockScrollDirection ScrollDirection = iota
    InlineScrollDirection
    HorizontalScrollDirection
    VerticalScrollDirection
)

func ScrollDirectionFromJS Uses

func ScrollDirectionFromJS(value js.Value) ScrollDirection

ScrollDirectionFromJS is converting a javascript value into a ScrollDirection enum value.

func (*ScrollDirection) JSValue Uses

func (this *ScrollDirection) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ScrollDirection) Value Uses

func (this ScrollDirection) Value() string

Value is converting this into javascript defined string value

type ScrollTimeline Uses

type ScrollTimeline struct {
    webani.AnimationTimeline
}

class: ScrollTimeline

func NewScrollTimeline Uses

func NewScrollTimeline(options *ScrollTimelineOptions) (_result *ScrollTimeline)

func ScrollTimelineFromJS Uses

func ScrollTimelineFromJS(value js.Wrapper) *ScrollTimeline

ScrollTimelineFromJS is casting a js.Wrapper into ScrollTimeline.

func (*ScrollTimeline) EndScrollOffset Uses

func (_this *ScrollTimeline) EndScrollOffset() string

EndScrollOffset returning attribute 'endScrollOffset' with type string (idl: DOMString).

func (*ScrollTimeline) Fill Uses

func (_this *ScrollTimeline) Fill() webani.FillMode

Fill returning attribute 'fill' with type webani.FillMode (idl: FillMode).

func (*ScrollTimeline) Orientation Uses

func (_this *ScrollTimeline) Orientation() ScrollDirection

Orientation returning attribute 'orientation' with type ScrollDirection (idl: ScrollDirection).

func (*ScrollTimeline) ScrollSource Uses

func (_this *ScrollTimeline) ScrollSource() *dom.Element

ScrollSource returning attribute 'scrollSource' with type dom.Element (idl: Element).

func (*ScrollTimeline) StartScrollOffset Uses

func (_this *ScrollTimeline) StartScrollOffset() string

StartScrollOffset returning attribute 'startScrollOffset' with type string (idl: DOMString).

func (*ScrollTimeline) TimeRange Uses

func (_this *ScrollTimeline) TimeRange() *Union

TimeRange returning attribute 'timeRange' with type Union (idl: Union).

type ScrollTimelineAutoKeyword Uses

type ScrollTimelineAutoKeyword int

enum: ScrollTimelineAutoKeyword

const (
    AutoScrollTimelineAutoKeyword ScrollTimelineAutoKeyword = iota
)

func ScrollTimelineAutoKeywordFromJS Uses

func ScrollTimelineAutoKeywordFromJS(value js.Value) ScrollTimelineAutoKeyword

ScrollTimelineAutoKeywordFromJS is converting a javascript value into a ScrollTimelineAutoKeyword enum value.

func (*ScrollTimelineAutoKeyword) JSValue Uses

func (this *ScrollTimelineAutoKeyword) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ScrollTimelineAutoKeyword) Value Uses

func (this ScrollTimelineAutoKeyword) Value() string

Value is converting this into javascript defined string value

type ScrollTimelineOptions Uses

type ScrollTimelineOptions struct {
    ScrollSource      *dom.Element
    Orientation       ScrollDirection
    StartScrollOffset string
    EndScrollOffset   string
    TimeRange         *Union
    Fill              webani.FillMode
}

dictionary: ScrollTimelineOptions

func ScrollTimelineOptionsFromJS Uses

func ScrollTimelineOptionsFromJS(value js.Wrapper) *ScrollTimelineOptions

ScrollTimelineOptionsFromJS is allocating a new ScrollTimelineOptions object and copy all values from input javascript object

func (*ScrollTimelineOptions) JSValue Uses

func (_this *ScrollTimelineOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package scrollanimations imports 3 packages (graph). Updated 2019-09-15. Refresh now. Tools for package owners.