Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CSS Sprite with keyframes ?

Featured Replies

CSS sprites only work with background images. You could perhaps try animating the background position. However I think you're are not understanding what a sprite is. You can't have a repeating pattern that is a sprite for example, which is what I think you are looking for based on your description of a granual animated effect. Also a repeating pattern wont work inside an IMG tag either, it must be a background image.

It's technically possible using overflow, but it defeats the whole point of using sprites. You will need to include an image for each instance it's used, and this means you will be requesting an image each time. It also makes it difficult to re-use, so I'd look at doing this with background images instead.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.