Because the query states, is that this attainable? To have an .factor
that holds info/knowledge and likewise has a background that must be rotated—not the data (.factor
) itself, however the background picture. This could be comparatively trivial if the HTML syntax have been modified to use a masks for the picture or textual content, or if a components/operate have been created to use a animation by way of JavaScript. However is it attainable to attain this inside the identical factor with out utilizing JavaScript or altering the syntax for the HTML?
@keyframes rotateBackground {
/*
An animation that strictly rotates the background, versus your complete factor.
*/
}
.factor {
background: url("some-image.png");
background-size: comprise;
background-repeat: no-repeat;
background-repeat: no-repeat;
background-position: middle;
animation: rotateBackground 5s linear infinite;
/*
Different factor kinds unrelated to the background.
*/
}
How can I strictly rotate the background itself, with out altering
the HTML construction or utilizing JavaScript?