Proyek
Lihat di GitHub
LegendApp/legend-motion
Tentang
Legend Motion adalah pustaka animasi deklaratif untuk React Native yang memudahkan transisi antar-gaya tanpa perlu mengelola animasi.
Pengembangan web dan aplikasiYang dapat Anda lakukan
- ✨ Supports react-native and react-native-web
- ✨ API similar to Framer Motion for easy mixing of React Native with React
- ✨ Supports animating SVG and linear gradient
- ✨ Supports transformOrigin
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- +1
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliLegend-Motion
Legend-Motion is a declarative animations library for React Native, to make it easy to transition between styles without needing to manage animations.
npm install @legendapp/motion or yarn add @legendapp/motion
import { Motion } from "@legendapp/motion"
<Motion.View
initial={{ y: -50 }}
animate={{ x: value * 100, y: 0 }}
whileHover={{ scale: 1.2 }}
whileTap={{ y: 20 }}
transition={{ type: 'spring' }}
/>
Highlights
- ✨ Supports react-native and react-native-web
- ✨ API similar to Framer Motion for easy mixing of React Native with React
- ✨ Supports animating SVG and linear gradient
- ✨ Supports transformOrigin
- ✨ whileHover and whileTap for easy animations on touch
- ✨ AnimatePresence for exit animations
- ✨ 0 dependencies using the built-in Animated
- ✨ Built for maximum performance
- ✨ Strongly typed with TypeScript
📖 Docs
The full documentation with live examples is on our website.
Upgrading from 1.x
whileTapandwhileHoverprops now require aMotion.Pressableancestor, which it uses for tracking whether it's hovered or pressed. See the example.
👩⚖️ License
Legend-Motion is created and maintained by Jay Meistrich with Legend and Bravely.
Jelajahi proyek terkait
Memuat…


