opacity

css transition opacity fade background

非 Y 不嫁゛ 提交于 2019-11-28 08:57:30
I am doing a transition where it fades into transparent white, when a user is hovering an image. My problem is that I need to change the color, that it fades to, to black. I have tried just simply adding background:black; to the class that contains the transition , but it does not work unfurtunately, it's still fading into white transparent. The css code I am using is: .hover:hover { opacity: 0.2; } .item-fade { background: black; opacity: 0.8; transition: opacity .25s ease-in-out; -moz-transition: opacity .25s ease-in-out; -webkit-transition: opacity .25s ease-in-out; } <p>Hover image, the

CSS - Opaque text on low opacity div?

我只是一个虾纸丫 提交于 2019-11-28 08:52:54
I have a div with 60% opacity, to show part of a background image behind the div. Because the opacity is at 60%, the text in that div appears as grey. Is there anyway to override this level and make the text appear black? Any advice appreciated. Thanks. Set the opacity on the background rather than the element. background-color: rgba(255,0,0,0.6); A while ago I wrote about how to achieve this in a backwards compatible way . JohnTheTinkerer I've experimented with this in the past on my own website. By far the easiest method to achieve what you want is to create a single-pixel .PNG image with

JPEG image with alpha channel on website [closed]

ⅰ亾dé卋堺 提交于 2019-11-28 07:21:26
I would like to make a JPEG image file with some pixels that are partially transparent or fully transparent, similar to a PNG file with an alpha channel. Is this possible? If so, how would I go about doing this? I would like to use the image on a website. If I try to do this, would it work in any or all of the popular browsers (IE 7+, Firefox, Safari)? Assuming it is possible, will it just work, or are there any tricks or hacks required to make it work? EDIT: Some of the replies say I can't do this. However, I found this page describing a JPEG image with transparency. Does anyone know if there

Darken image on rollover

时间秒杀一切 提交于 2019-11-28 06:02:46
问题 I have a list of images that need to darken on rollover. I would REALLY love to do this without a bloated css rollover technique as anytime spent out of photoshop makes me very happy. I got part of the way there but something is going wrong. Here it is live: http://daveywhitney.com/dark/ CODE: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Darken</title> <style type="text/css"> #topnav { float:left

How do you override the opacity of a parent control in WPF?

不羁岁月 提交于 2019-11-28 05:49:41
When you set the opacity on a Grid in WPF, all the child elements appear to inherit its Opacity . How can you have a child element not inherit the parent's opacity? For example, the following parent grid has one child grid in the middle with a background set to red, but the background appears pinkish because of the parent's opacity. I'd like the child grid to have a solid color, non-transparent background: <Grid x:Name="LayoutRoot"> <Grid Background="Black" Opacity="0.5"> <Grid.RowDefinitions> <RowDefinition Height="0.333*"/> <RowDefinition Height="0.333*"/> <RowDefinition Height="0.333*"/> <

How can i change background image opacity without changing on div content? [duplicate]

南楼画角 提交于 2019-11-28 03:04:46
问题 This question already has an answer here: CSS background-image-opacity? 10 answers I want know that "How can i change background image opacity without changing on div content?" I searched too much & I don't find a good answer to solve this issue! HTML <div class="div-1"> <h2>title</h2> <p>text</p></div> CSS .div{ position:relative; width:200px; height:200px; float:left; color:white; background:#7a8586 url('url') no-repeat local right; overflow:hidden; text-align: justify; font-family:arial;

No opacity on div inside a div with opacity

橙三吉。 提交于 2019-11-28 02:43:06
问题 I have to use the asp.net ajax toolkit for a task and what I am doing is to display a div on the whole screen when an update progress control is triggered. The main div (that covers the whole screen) is having some opacity but when I try to have a div inside this one that one also gets some opacity even though I set it to none; Example HTML: <ProgressTemplate> <div class="updateProgressBox"> <div class="updateProgressMessage"> <p>Processing request..</p> </div> </div> </ProgressTemplate> And

Opacity in web pages?

狂风中的少年 提交于 2019-11-28 01:14:22
问题 I keep seeing 60-80% opacity on tables on websites. They look really cool, but I'm not sure why they are doing it. Is it Javascript, or is it an image? How do I change the opacity of a table? 回答1: You can do it in CSS, but it requires a little hacking to get it to work cross-browser. selector { filter: alpha(opacity=50); /* internet explorer */ opacity: 0.5; /* fx, safari, opera, chrome */ -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=50)"; /*IE8*/ } 回答2: IE uses the syntax

jQuery opacity animation

点点圈 提交于 2019-11-27 23:21:21
问题 I am making a website, and it allows users to change view options. I use jQuery to smooth animations for font changing. It fades the whole page out and back in again with the new fonts. The fade out animation is fine, but when it fades back in, there's no fade. It just pops up, no animation. The problematic jQuery is in http://xsznix.my3gb.com/options.php. The code I have so far is this: $('#font-classic').click(function(){ $(document.body).animate({opacity: '0%'},{duration: 1000, complete:

Can I do knock-out/punch-through transparency with CSS fonts?

做~自己de王妃 提交于 2019-11-27 23:08:14
I would like to know if there is any way I can apply 100% transparency to text so that we can see the background picture of the page within the characters in the text. i.e. imagine I’ve got a <div> with a white background, and a background image on <body> . I’d like to set the text inside the <div> so that the background image on <body> can be seen through the text, despite the white background on the <div> . I could probably use an inverted font but I would prefer a better way to do it if there is one. Esteban Küber Does it have to be dynamic? The only way to do that is with an image with