- CSS Tutorial
- CSS - Home
- CSS - Introduction
- CSS - Syntax
- CSS - Selectors
- CSS - Inclusion
- CSS - Measurement Units
- CSS - Colors
- CSS - Backgrounds
- CSS - Fonts
- CSS - Text
- CSS - Images
- CSS - Links
- CSS - Tables
- CSS - Borders
- CSS - Border Block
- CSS - Border Inline
- CSS - Margins
- CSS - Lists
- CSS - Padding
- CSS - Cursor
- CSS - Outlines
- CSS - Dimension
- CSS - Scrollbars
- CSS - Inline Block
- CSS - Dropdowns
- CSS - Visibility
- CSS - Overflow
- CSS - Clearfix
- CSS - Float
- CSS - Arrows
- CSS - Resize
- CSS - Quotes
- CSS - Order
- CSS - Position
- CSS - Hyphens
- CSS - Hover
- CSS - Display
- CSS - Focus
- CSS - Zoom
- CSS - Translate
- CSS - Height
- CSS - Hyphenate Character
- CSS - Width
- CSS - Opacity
- CSS - Z-Index
- CSS - Bottom
- CSS - Navbar
- CSS - Overlay
- CSS - Forms
- CSS - Align
- CSS - Icons
- CSS - Image Gallery
- CSS - Comments
- CSS - Loaders
- CSS - Attr Selectors
- CSS - Combinators
- CSS - Root
- CSS - Box Model
- CSS - Counters
- CSS - Clip
- CSS - Writing Mode
- CSS - Unicode-bidi
- CSS - min-content
- CSS - All
- CSS - Inset
- CSS - Isolation
- CSS - Overscroll
- CSS - Justify Items
- CSS - Justify Self
- CSS - Tab Size
- CSS - Pointer Events
- CSS - Place Content
- CSS - Place Items
- CSS - Place Self
- CSS - Max Block Size
- CSS - Min Block Size
- CSS - Mix Blend Mode
- CSS - Max Inline Size
- CSS - Min Inline Size
- CSS - Offset
- CSS - Accent Color
- CSS - User Select
- CSS Advanced
- CSS - Grid
- CSS - Grid Layout
- CSS - Flexbox
- CSS - Visibility
- CSS - Positioning
- CSS - Layers
- CSS - Pseudo Classes
- CSS - Pseudo Elements
- CSS - @ Rules
- CSS - Text Effects
- CSS - Paged Media
- CSS - Printing
- CSS - Layouts
- CSS - Validations
- CSS - Image Sprites
- CSS - Important
- CSS - Data Types
- CSS3 Tutorial
- CSS3 - Tutorial
- CSS - Rounded Corner
- CSS - Border Images
- CSS - Multi Background
- CSS - Color
- CSS - Gradients
- CSS - Box Shadow
- CSS - Box Decoration Break
- CSS - Caret Color
- CSS - Text Shadow
- CSS - Text
- CSS - 2d transform
- CSS - 3d transform
- CSS - Transition
- CSS - Animation
- CSS - Multi columns
- CSS - Box Sizing
- CSS - Tooltips
- CSS - Buttons
- CSS - Pagination
- CSS - Variables
- CSS - Media Queries
- CSS - Functions
- CSS - Math Functions
- CSS - Masking
- CSS - Shapes
- CSS - Style Images
- CSS - Specificity
- CSS - Custom Properties
- CSS Responsive
- CSS RWD - Introduction
- CSS RWD - Viewport
- CSS RWD - Grid View
- CSS RWD - Media Queries
- CSS RWD - Images
- CSS RWD - Videos
- CSS RWD - Frameworks
- CSS References
- CSS - Questions and Answers
- CSS - Quick Guide
- CSS - References
- CSS - Color References
- CSS - Web browser References
- CSS - Web safe fonts
- CSS - Units
- CSS - Animation
- CSS Resources
- CSS - Useful Resources
- CSS - Discussion
CSS Media Features - Update
CSS update media feature helps check how repeatedly the device can change the appearance of content after it has been displayed.
Possible Values
none − The display is not updated. This value is typically used for printed documents.
slow − The display has a slow refresh rate. This is common on e-book readers or very slow devices.
fast − The display has a fast refresh rate. This allows the use of regularly updating elements like CSS Animations, typical for computer screens.
Syntax
update: none|slow|fast;
CSS update - none Value
The following example demonstrates use of update: none media feature to apply an animation to the body element when the update frequency of the output device is none.This animation won't be visible on regular screens but will give an effect when you view it on something like a printed page −
<html> <head> <style> body { color: black; } @media (update: none) { body { animation: animation 1s infinite; color: red; } } @keyframes animation { 0% { transform: translateX(0); } 100% { transform: translateX(100px); } } button { background-color: violet; padding: 5px; } </style> </head> <body> <p>Click on below button to see the effect when you print the page.</p> <button onclick="printPage()">Print Page</button> <p>CSS Media feature update: none</p> <script> function printPage() { window.print(); } </script> </body> </html>
CSS update - slow Value
If you use the update: slow media feature, you should see the text content move to the right and turn red on devices that are slow to update their displays. This includes devices such as low-powered devices and e-ink displays.
Here is an example −
<html> <head> <style> body { color: black; } @media (update: slow) { body { animation: animation 1s infinite; color: red; } } @keyframes animation { 0% { transform: translateX(0); } 100% { transform: translateX(100px); } } </style> </head> <body> <h3>You can see the effect of the update: slow media query on low-powered devices and e-ink displays.</h3> <p>CSS Media feature update: slow</p> </body> </html>
CSS update - fast Value
The following example demonstrates that the update: fast media feature will cause the body element to move 100 pixels to the right and then back to the left over the course of 1 second −
<html> <head> <style> body { color: black; } @media (update: fast) { body { animation: animation 1s infinite; color: red; } } @keyframes animation { 0% { transform: translateX(0); } 100% { transform: translateX(100px); } } </style> </head> <body> <p>CSS Media feature update: fast</p> </body> </html>
To Continue Learning Please Login
Login with Google