swiper

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...seed.Option) seed.Seed

Types

type CoverflowEffect

type CoverflowEffect struct {
	Rotate       float64 `json:"rotate"`
	Stretch      float64 `json:"stretch,omitempty"`
	Depth        int     `json:"depth"`
	Modifier     int     `json:"modifier,omitempty"`
	SlideShadows bool    `json:"slideShadows"`
}

func (CoverflowEffect) AddTo

func (CoverflowEffect) AddTo(c seed.Seed)

type Options

type Options struct {
	Effect string `json:"effect,omitempty"`

	CoverflowEffect CoverflowEffect `json:"coverflowEffect,omitempty"`

	Pagination PaginationOptions `json:"pagination,omitempty"`

	Observer             bool `json:"observer,omitempty"`
	ObserveParents       bool `json:"observeParents,omitempty"`
	ObserveSlideChildren bool `json:"observeSlideChildren,omitempty"`
}

type Pagination

type Pagination struct {
	seed.Seed
}

func NewPagination

func NewPagination(options ...seed.Option) Pagination

type PaginationOptions

type PaginationOptions struct {
	Element string `json:"el,omitempty"`
}

type Slide

type Slide struct {
	seed.Seed
}

func NewSlide

func NewSlide(options ...seed.Option) Slide

Jump to

Keyboard shortcuts

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