You can’t fade the opacity of an element, without having what’s behind showing through.
The site you linked to isn’t fading the opacity of the image, but introducing a translucent layer over the top with the text in.
If you just want to fade the image, but not have the background show through, you could put a wrapper around the image with a solid background colour. But there’s no way to fade an image and not have what’s behind show through.
.container { background:#FFF; } .container img:hover { opacity:0.8; }
Related Posts:
- CSS Background Opacity [duplicate]
- CSS opacity only to background color, not the text on it?
- Using CSS for a fade-in effect on page load
- How to vertically align an image inside a div
- How to change text transparency in HTML/CSS?
- Change color of PNG image via CSS?
- css transition opacity fade background
- Can you set a border opacity in CSS?
- Define an ‘s src attribute in CSS [duplicate]
- How to place Text and an Image next to each other in HTML?
- Adding a blurred border in CSS
- Contain an image within a div?
- CSS force image resize and keep aspect ratio
- How to change the background colour’s opacity in CSS
- How can I fill a div with an image while keeping it proportional?
- Removing whitespace between HTML elements when using line breaks
- How to get multiple images to auto resize and stay centered within a div
- Customize Bootstrap checkboxes
- What is WebKit and how is it related to CSS?
- Is there a color code for transparent in HTML?
- How can I center an absolutely positioned element in a div?
- How to override the properties of a CSS class using another CSS class
- Text-decoration: none not working
- Aligning two divs side-by-side
- CSS transition shorthand with multiple properties?
- bootstrap 4 row height
- sass :first-child not working
- How to add image that is on my computer to a site in css or html?
- Twitter Bootstrap – add top space between rows
- Hex colors: Numeric representation for “transparent”?
- Text wrapping around a div
- Iframe’s overflow problem
- Show / hide div on click with CSS
- CSS to select/style first word
- img-responsive in Bootstrap does not work
- sizing div based on window width
- Enqueue Google Web Fonts Without Messing Up Symbols In URL
- How to modify/extend/override a core method?
- Overriding Gallery Margin
- Adding style sheet to specific page
- How do I add a class to that is generated by >
- How to add a body class to all interior pages except the homepage
- add a CSS id to the body of a page in wordpress
- wordpress CSS styles – footer border do not show
- Can I use theme options to change two things at once?
- Possible to include ACF text field within inline style tag?
- wp_head function causes 30px blank space [closed]
- get_stylesheet_uri returns wrong path
- Include print style sheet
- De-registering a CSS file leaves it in the queue
- WooCommerce change number of columns in the frontpage
- How to add an RSS logo to my blogs header?
- How does W3 Total Cache Load Images In Stylesheet via CDN? [closed]
- images within style sheet
- IE and WordPress
- Child theme stylesheet not always overriding “index”
- Alternate stylesheet only works with absolute address for link?
- How to create an optionally available stylesheet for visually impared users?
- Image getting out of container [closed]
- Clients website shows blank page [closed]
- Why is my child theme style.css not found (404) in the front-end? [closed]
- functions.php – inject inline css from file
- Changing navigation strip color with CSS
- Use Google Fonts and unicodes
- Conditionally print css style in WordPress
- Adding elements to wp_list_pages (within , but before )
- WordPress is not displaying CSS file
- Page versus post ID specific CSS ID?
- Why doesn’t WP recognize images in posts like other content? [closed]
- CSS for the main top menu appears to have stopped working after All-In-One Migration transfer
- Css will not display in webpage, after adding it in style.css in child theme
- Hide Tab Titles from Tabs Block
- Hide product variations at home page
- wp_list_pages two columns
- TinyMCE on frontend style not working
- Bootstrap Integtration
- H2 On Blog/Article Page Gets Assigned a Class
- HTML not resizing
- Style not being applied to newly installed themes
- Make Responsive Specific Page in WordPress
- How to get homepage div container of wordpress website to display full width? [duplicate]
- CSS in child theme to replace !important in parent theme
- WP theme update causes child theme CSS problems
- Wesbite super slow on iphone / very fast on desktop with same connection on wifi
- adding a favicon to site2 – site1/site2/favicon.ico
- WordPress crop image not working [closed]
- Which files can be replaced in a child theme?
- How to implement styling of div in the front end using plugin admin meta box settings?
- How do i make a sidebar background color? [closed]
- How to remove audio player styles added by mediaelement.js JavaScript?
- CSS messes up when CACHE is cleared
- Twenty Fourteen Theme – Moving left sidebar to the right
- WordPress doesn’t respect “ver” parameter in styles [closed]
- Image is very blurry
- how to change the colour of this background
- 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