Forums

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

Home Forums CSS My image won't work in CSS

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #275261
    heyitsme
    Participant

    I want my image to animate, which I have already done and it works perfectly, although when I try to add a class tag for css, it does not work.

    https://codepen.io/heyitsmeeee/pen/LBqaEX

    #275264
    Beverleyh
    Participant

    You’ve added a class attribute of “startup” successfully to the img element and the img animation works fine.

    What exactly is the problem you’re having?

    #275265
    heyitsme
    Participant

    the problem that I’m having is that the image that does the animation is not the same one that is fullscreen on the page. I want the fullscreen page to animate, but when I code it, it makes a new version of the picture and animates that one instead.

    #275266
    Beverleyh
    Participant

    You’ve applied the animation to the img element. If you don’t want the img element to animate, don’t apply the animation to it. Instead, apply the animation to the html element that you do want to animate. Also remove the img element from the markup too, if it was just a test.

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