()
| 3 | import { Animated, Animator, AnimatorGeneralProvider, FrameOctagon } from '@arwes/react' |
| 4 | |
| 5 | const Example = (): JSX.Element => { |
| 6 | return ( |
| 7 | <AnimatorGeneralProvider disabled={false} dismissed={false} duration={{ enter: 2, exit: 2 }}> |
| 8 | <Animator root active> |
| 9 | <Animated |
| 10 | className="relative flex size-full text-center" |
| 11 | animated={{ |
| 12 | transitions: { |
| 13 | entering: { |
| 14 | width: ['50%', '100%'], |
| 15 | height: ['100%', '25%'], |
| 16 | easing: 'steps(5, end)', |
| 17 | repeat: Infinity, |
| 18 | direction: 'alternate' |
| 19 | } |
| 20 | } |
| 21 | }} |
| 22 | > |
| 23 | <FrameOctagon |
| 24 | style={{ |
| 25 | // @ts-expect-error css variables |
| 26 | '--arwes-frames-line-color': '#20DFDF', |
| 27 | '--arwes-frames-bg-color': 'hsl(180deg 75% 50% / 10%)' |
| 28 | }} |
| 29 | /> |
| 30 | <div className="relative m-auto p-4"> |
| 31 | <p className="!m-0">Futuristic Sci-Fi UI Web Framework</p> |
| 32 | </div> |
| 33 | </Animated> |
| 34 | </Animator> |
| 35 | </AnimatorGeneralProvider> |
| 36 | ) |
| 37 | } |
| 38 | |
| 39 | const ExampleFrameProvided = (): JSX.Element => { |
| 40 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected