Update
This commit is contained in:
29
resources/js/components/reactbits/ShinyText/ShinyText.jsx
Normal file
29
resources/js/components/reactbits/ShinyText/ShinyText.jsx
Normal file
@@ -0,0 +1,29 @@
|
||||
const ShinyText = ({ text, disabled = false, speed = 5, className = '' }) => {
|
||||
const animationDuration = `${speed}s`;
|
||||
|
||||
return (
|
||||
<div className={`shiny-text ${disabled ? 'disabled' : ''} ${className}`} style={{ animationDuration }}>
|
||||
{text}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default ShinyText;
|
||||
|
||||
// tailwind.config.js
|
||||
// module.exports = {
|
||||
// theme: {
|
||||
// extend: {
|
||||
// keyframes: {
|
||||
// shine: {
|
||||
// '0%': { 'background-position': '100%' },
|
||||
// '100%': { 'background-position': '-100%' },
|
||||
// },
|
||||
// },
|
||||
// animation: {
|
||||
// shine: 'shine 5s linear infinite',
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// plugins: [],
|
||||
// };
|
||||
Reference in New Issue
Block a user