CSS Sprites

Discussion in 'Have You Seen...?' started by Kier, Sep 9, 2011.

  1. Clickfinity Well-Known Member

    Nice ... :D
  2. Digital Jedi Member

    I didn't think he was being condescending. I think he was being explanatory, like I was. I think the communication issue we're having here is some of you think we're trying to convince you not to use animated images, or that there shouldn't be an option to use individual images. That's not what we're saying. We're saying when they don't need to be animated, they should be sprite sheets. And we're explaining why that's a very, very good thing. Not just something new and shiny for coders to brag about having figger'd out. But something that cuts down on precious resources that even the smallest website should be concerned about.
    MGSteve likes this.
  3. ragtek back2life

    And what affect had this on the load time of the pages?
  4. Digital Jedi Member

    Wondering out loud, is it still possible to use a sprite sheet with animations if the file is .mng, or would it just be a crazy large file, like if you tried using a GIF? I really have never really ever even seen one used outside of a technical explanation online.
  5. Digital Jedi Member

    It's not really about time. It's about the requests being made to your server.
    Tj Loveric likes this.
  6. Floris Guest

    Which results in affecting load time of a page.
    Tj Loveric likes this.
  7. Digital Jedi Member

    Details.
  8. Agent Member

    cant wait for the release :)
  9. Shelley Well-Known Member

    Excellente (y) This was imo the best solution to give people the option. Me personally, I'll be using spritesheets. As tommy the tiger from the Kellogg commercials would say - they taste greeeeeeeeeeeeeeeat :D
    Kim likes this.
  10. James Well-Known Member

    Surely the taste dependant on the appeal and flavour of the images? Or do you just have tasty ink? ;)
  11. brendanc Active Member

    MNG is not supported in most (if not all) modern browsers, so you're out of luck with that =/

    I really wish MNG was adopted as a GIF replacement. For now, I would stick to using individual GIF files for animated graphic. Though, in my opinion, you should avoid animated graphics whenever possible. I think about the only thing that should be animated nowadays are progress indicators and the like. Even then, they're somewhat disingenuous because they will animate regardless of what state the application is in.
  12. Shelley Well-Known Member

    I too wish .MNG was adopted and flourished years ago but it's been around for many years now and still it's not being supported so I have very little faith it will be supported anytime soon, if ever. Which is a real shame.
  13. Floris Guest

  14. Digital Jedi Member

    Oh no, I meant that differently. I was facetiously acquiescing.
  15. Digital Jedi Member

    Would that have anything to do with the fact it uses the object/embed tags? I only just now realized that it required it in HTML documents.

    Theoretically, though, would using a MNG as a sprite sheet be a good idea?
  16. Floris Guest

    Okay.
  17. x_Stricken_x Member

    Gotta love a bit of Javascript(/jQuery/Prototype) and CSS3(for gradients/cool-ness)
  18. brendanc Active Member

    Theoretically, maybe... but you'd have to consider that all animations would need to be the same number of frames or have their frames divisible by the number of frames in the longest animation. Otherwise, you'd have animation "sync" problems.

    I'm not sure that would be worth it, to be honest.

    The only time I could see that being useful at all is if you had the same loading animation in a bunch of different colors, for say, a theme or different states of loading.
  19. Kier XenForo Developer

    24-bit version of the updated xenforo-ui-sprite.png

    Attached Files:

    Marcus, Saeed, Audentio and 3 others like this.
  20. Kier XenForo Developer

    Sorry, I've updated it again.

    Attached Files:

    Saeed and Veer like this.

Share This Page