I am looking to achieve a similar effect of setting the image as a background-url with specific styling attributes. Here is the CSS code snippet:
img.thisIsMyImage {
background: url("../../services/images/hehe.jpg") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
animation: increase 60s linear 10ms infinite;
-webkit-transition: all 5.2s ease-in-out;
-moz-transition: all 5.2s ease-in-out;
-ms-transition: all 5.2s ease-in-out;
-o-transition: all 5.2s ease-in-out;
transition: all 5.2s ease-in-out;
}
Now, I have integrated this React component:
render() {
return (
<div>
<img src={rsm_logo} className="thisIsMyImage" alt="containerLogo" />
<LoginForm submit={this.submit} />
</div>
)
}
The above code works perfectly in CSS, but I aim to apply these styles to the element within the .jsx code under "thisIsMyImage" while maintaining the same behavior. Any suggestions or tips are highly appreciated. Thank you.