Most voted "opacity" questions
Opacity is a CSS property that defines the transparency level of an object.
Learn more…11 questions
Sort by count of
-
10
votes5
answers16498
viewsHow can we not apply opacity to a child element?
I have a div with applied opacity, but this div has child element. I don’t want to apply opacity to those child elements, I would have some way of solving that? Example: http://jsfiddle.net/qSsC3/1/…
-
2
votes3
answers469
viewsjQuery . toggleClass() is not working as expected
I have this code but I don’t understand why the method .toggleClass() is not functioning as expected to change the opacity of the element: Example in Jsfiddle HTML <div id="admin">…
-
2
votes3
answers809
viewsOpacity according to page scroll
I have the following complication: $(window).scroll(function() { $('ID').css('opacity', parseInt(1 - ($(this).scrollTop()/100)*1)); }); In this code I can put opacity: 1; when the scroll is at the…
-
2
votes3
answers881
viewsIs it possible, in CSS or Javascript, to leave a color of a transparent image?
For example, we have this boat: <div> <img src="https://cdn2.vectorstock.com/i/thumb-large/94/56/lifeboat-vector-3669456.jpg" > </div> In this case, I want the white color…
-
2
votes2
answers77
viewsOpacity only in li and not in span
I have the following code HTML: <li class="item produtoDesabilitado" id="1028" style="border: 2px solid rgb(255, 255, 255) !important; height: 346px; padding-bottom: 22px;"> <div…
-
2
votes1
answer183
viewsClick on Span (recycle bin icon) to trigger in my li fadeOut events and then remove
I’m creating an Todo List with vanilla js and ran into a problem. When I click the recycle bin icon (within my span) I can’t delete my li. They could point me the way so that I can do with…
-
1
votes1
answer205
viewsMicrosoft Edge starts opacity and Transition with bug
I’ve been trying for a long time to solve a bug that only occurs in Microsoft Edge. I need to create a link that has a circle-like border, and within this circle I need you to have an image. When…
-
1
votes2
answers55
viewsMake a background photo opaque/darken. Should I use pseudo element ::after?
I need to darken/or render opaque a background photo in the html header. I tried to use ::after in relative position by applying a rgba, but it is not working. What solution could I give in this…
-
0
votes1
answer1275
viewsTransparent form with image C#
Next I’m making a tutorial screen for the program, I did not find a good solution to do. I created a screen over another with transparency, so far so good, but when I put an image on this screen, it…
-
0
votes1
answer21
viewsDisplay different images of <div>, at a time of 2s each
I have a div with an img and I need that div has 3 different images, in a time of 2s each. I am using Html5 and css3 <img src="01.png" class="img1"> <img src="02.png" class="img-2">…
-
-1
votes1
answer61
viewsHow to create an animation for a Graphicseffect property in Pyqt5?
I created a Label to make a slideshow and want to create a transition effect fading between one image and another. To do this effect, I want to define an opacity of 1.0 à 0.0 in my Label. So far, I…