Transit

A magical component, let the number also have transitional changes!

Code demonstration

import { UTransit } from 'ungeui';

Basic useage📦️

Note that Number() will be used inside the component to convert child elements, so the direct child elements of the component must be numbers⚠️

300
📦️Basic useageWhen the digital value of the package changes, the digital size will transition automatically

Custom transition time⏱

300
⏱Basic useageSet the transition time to 2 seconds, the default is 0.5s

Props

PropertyDescriptionTypeDefault
durationDuration of transition, the unit is msnumber500

Last Updated:4/20/2022, 1:27:49 PM