Answers for "react css hover animation"

CSS
0

react css hover animation

npm install style-it 
*********
import React from "react";
import Style from "style-it";

class UrClass extends React.Component {
  render() {
    return Style.it(
      `
      .myDiv:hover {
        color:red;
        transform: scale(1.001);
        background: #f0c14b;
      }
    `,
      <div className="myDiv">sample text</div>
    );
  }
}

export default UrClass;
Posted by: Guest on September-12-2020

Browse Popular Code Answers by Language