The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Animate background-image only?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #154805

    Does anyone know a way to target only the background-image when using css3 animations? Say for example, an element has a width+height of 60px, and the background-image has a width+height of 40px.

    Live example:

    Edit: I tried using the :before pseudo selector for the background-image and animation, but that doesn’t solve the problem unfortunately.

    Live example:

    Edit 2: Forgot about this resource. Seems to clarify things now.

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.