Skip to content

krisajenkins/purescript-halogen-transition

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescript-halogen-transition

CircleCI

Works with Halogen 5 rc.4.

See a demo.

How to use

Please check examples folder. The basic idea is passing a render function to Transition.component.

import Halogen.Transition as Transition

render state =
    HH.slot _transition unit Transition.component
    { enterClass: "simple-enter"
    , enterActiveClass: "simple-enter-active"
    , leaveClass: "simple-leave"
    , leaveActiveClass: "simple-leave-active"
    , shown: state.shown
    , render: HH.text "hello world!"
    } $ const Nothing

About

A component that toggles enter/leave class when visibility changes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PureScript 100.0%