monomer-1.0.0.0: A GUI library for writing native Haskell applications.
Copyright(c) 2018 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Monomer.Widgets.Animation.Fade

Description

Fade animation widget. Wraps a child widget whose content will be animated.

Config:

  • autoStart: whether the first time the widget is added, animation should run.
  • duration: how long the animation lasts in ms.
  • onFinished: event to raise when animation is complete.

Messages:

  • Receives a AnimationMsg, used to control the state of the animation.
Synopsis

Documentation

animFadeIn :: WidgetEvent e => WidgetNode s e -> WidgetNode s e Source #

Animates a widget from not visible state to fully visible.

animFadeIn_ :: WidgetEvent e => [FadeCfg e] -> WidgetNode s e -> WidgetNode s e Source #

Animates a widget from not visible state to fully visible. Accepts config.

animFadeOut :: WidgetEvent e => WidgetNode s e -> WidgetNode s e Source #

Animates a widget from visible state to not visible.

animFadeOut_ :: WidgetEvent e => [FadeCfg e] -> WidgetNode s e -> WidgetNode s e Source #

Animates a widget from visible state to not visible. Accepts config.