As far as I know, transitions currently work in Safari, Chrome, Firefox, Opera and Internet Explorer 10+.
This should produce a fade effect for you in these browsers:
a { background-color: #FF0; } a:hover { background-color: #AD310B; -webkit-transition: background-color 1000ms linear; -ms-transition: background-color 1000ms linear; transition: background-color 1000ms linear; }
<a>Navigation Link</a>
Note: As pointed out by Gerald in the comments, if you put the transition on the a
, instead of on a:hover
it will fade back to the original color when your mouse moves away from the link.
This might come in handy, too: CSS Fundamentals: CSS 3 Transitions
Related Posts:
- Set line spacing
- Outline effect to text
- Insert image after each list item
- Circle button css
- How do I center an h1 in the body
- CSS text-align: center; is not centering things
- Can you set a border opacity in CSS?
- Any way to limit border length?
- Why “Inline-block” doesn’t work properly in this CSS?
- CSS media queries: max-width OR max-height
- @font-face not working
- how to center an inline div using css?
- How to flip background image using CSS?
- What’s the difference between align-content and align-items?
- Slanted border using CSS
- Is it possible to define constants in CSS?
- Responsive media query not working in Google Chrome
- creating a chevron in CSS
- Is there a “previous sibling” selector?
- How do you center a video using CSS
- How to make fixed header table inside scrollable div?
- How to set background color in jquery
- CSS – why doesn’t percentage height work? [duplicate]
- CSS Color Filter Overlay
- How to align this span to the right of the div?
- WordPress Admin Bar Overlapping Twitter Bootstrap Navigation [closed]
- How to conditionally enqueue a stylesheet only for a certain page(s)?
- Assign a Class to the Current “Tag” for Formatting
- Is there a quick way to remove inline css from all posts?
- How to remove CSS file in the header using WordPress functions?
- Use wp_enqueue_scripts, not wp_print_styles?
- wp_tag_cloud inline CSS
- Do I only need to import style.css for a child theme?
- How Can I Use A Child Theme Effectively When Parent’s CSS Is Located in a ‘CSS folder’?
- Disable child theme css on certain pages
- Change CSS when user is logged in
- is it possible to use post-type as part of a css selector in block editor stylesheet?
- Sticky navigation and the wpadminbar
- Override load-styles.php with admin screen css
- CSS file not registering through add_action
- What controls responsiveness in WordPress?
- Eliminate render-blocking JavaScript and CSS in above-the-fold content
- Unable to load CSS file (HTTP 403)
- Accessing Style Sheet Comment Like WordPress
- Dynamic sidebar nav with current page highlighting
- how to setup content on a static frontpage with css and xhtml
- Bootstrap in theme
- How to integrate my HTML and javascript into my child theme
- How to align full div [closed]
- Font Awesome icons disappearing [closed]
- How to add inline css code with background image in page html code?
- Move Sidebar from Above Content To Below When Responsive [closed]
- Understanding how the class family `inner-container` works
- How to deal with logo color on dark mode?
- Change Header Image on Blog Post for Mobile View
- adding the_custom_logo(); to header
- Add second background-image on hover
- Apply custom css for user role
- override a css style [closed]
- How to avoid repeating similar properties for all tds of a table in a wordpress post
- Common page width? [closed]
- WordPress Rest Api access the header and extract stylesheets URL
- Login validation on wordpress
- CSS properties in textarea in the Customizer
- Add top parent page id to body class
- WordPress default theme CSS version problem and not loading
- Penscratch 2 – changing color of the main block
- How can customized CSS on WordPress highlight the blog title in white when it’s not intended?
- Are there any CSS classes for the wordpress colours?
- Set different css stylesheet for specific pages [duplicate]
- Desktop is class List and Mobile is class Grid
- Remove dashicons.min.css conditionally
- Remove Parent Style on Carousel
- current menu item hover not working?
- how to load basic wordpress css
- Fonts are not applying
- Text Not Wrapping Around Right Floated Image [closed]
- header background color changed after drop & import database in phpmyadmin
- Css style removed but still showing via CDN even after clearing browser cache and purging all caches for site
- How to include backend buttons css on frontend?
- vertical menu bar css
- After upload on server 404 on all pages, no css
- Managing large CSS files [closed]
- I need css code to divide my webpage sections into two columns
- Images at the same vertical position in multiple columns
- css .active dropdown selects all links
- background changed after WordPress update
- How to make this splash page responsive
- Menu is not styled properly and footer as well [closed]
- CSS does not take effects and it doesn’t show in inspect [closed]
- Add Quicksand for mobile devices
- Hiding site title for Twentyfifteen sidebar on (responsive) desktop display size
- Why is the image in div not displayed in full-size?
- How do I add JS and CSS to WP (Flatsome)
- can i custom rendered content from API?
- How to include Elementor CSS in custom php file [closed]
- How to add CSS to WordPress
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- Wrap post titles containing slashes on narrow viewports
- Import css file from node_modules using @wordpress/scripts