Copyright | (c) 2018 Francisco Vallarino |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | fjvallarino@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
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
- animFadeIn :: WidgetEvent e => WidgetNode s e -> WidgetNode s e
- animFadeIn_ :: WidgetEvent e => [FadeCfg e] -> WidgetNode s e -> WidgetNode s e
- animFadeOut :: WidgetEvent e => WidgetNode s e -> WidgetNode s e
- animFadeOut_ :: WidgetEvent e => [FadeCfg e] -> WidgetNode s e -> WidgetNode s e
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.