A Pen by Mark Elphinstone-Hoadley on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| import {useEffect, useRef, useState} from 'react'; | |
| import {Animated} from 'react-native'; | |
| function useTimingAnimation( | |
| initialValue: number, | |
| { | |
| delay, | |
| duration, | |
| easing, | |
| toValue, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| import { Component, Prop, State } from '@stencil/core'; | |
| import { interval, Subject } from 'rxjs'; | |
| import { takeUntil, startWith } from 'rxjs/operators'; | |
| import moment from 'moment'; | |
| @Component({ | |
| tag: 'app-now' | |
| }) | |
| export class Now { | |
| @Prop() time: number; |