mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-09 15:12:21 +00:00
15 lines
421 B
Haskell
Executable file
15 lines
421 B
Haskell
Executable file
#!/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 "oScaleOut"
|
|
oShowWith txt oFadeIn
|
|
oHideWith txt $ adjustDuration (*2) . oScaleOut
|