mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-11 16:12:20 +00:00
parent
d37e71ca94
commit
217c54ab38
12 changed files with 143 additions and 57 deletions
16
examples/doc_oHideWith.hs
Executable file
16
examples/doc_oHideWith.hs
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env stack
|
||||
-- stack runghc --package reanimate
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
module Main(main) where
|
||||
|
||||
import Reanimate
|
||||
import Reanimate.Scene
|
||||
import Reanimate.Builtin.Documentation
|
||||
|
||||
main :: IO ()
|
||||
main = reanimate $ docEnv $ scene $ do
|
||||
txt <- oNew $ withStrokeWidth 0 $ withFillOpacity 1 $
|
||||
center $ scale 3 $ latex "oScaleIn"
|
||||
oShowWith txt oFadeIn
|
||||
-- oShowWith txt $ adjustDuration (*2) . oScaleIn
|
||||
-- wait 1; oHideWith txt oFadeOut
|
||||
Loading…
Reference in a new issue