import { root } from "@lynx-js/react"; import "./index.scss"; import LynxIcon from "../../resource/lynx.png"; const AnimationExamples = () => { const transProperties = ["translateX", "translateY", "translateZ"]; const rotateProperties = ["rotateX", "rotateY", "rotateZ"]; const scaleProperties = ["scaleX", "scaleY", "scaleXY"]; const flipProperties = ["flipX", "flipY", "flipXY"]; const otherProperties = ["background-color", "opacity"]; return ( {/* Keyframes Animation Title */} keyframes animation {/* Translate Animations */} translate animation {transProperties.map((item, index) => ( {item} ))} {/* Rotate Animations */} rotate animation {rotateProperties.map((item, index) => ( {item} ))} {/* Scale Animations */} scale animation {scaleProperties.map((item, index) => ( {item} ))} {/* Flip Animations */} flip animation {flipProperties.map((item, index) => ( {item} ))} {/* Background color and opacity Animations */} bg-color opacity {otherProperties.map((item, index) => ( {item} ))} ); }; root.render(); if (import.meta.webpackHot) { import.meta.webpackHot.accept(); }