Questions tagged [transparent]

A GUI (often web) technique for trapping user actions across multiple elements by using an overlaying, but transparent, GUI object.

See this wiki article for more info. The tag should be used for the general subject of transparency in images.

See also: , ,

1915 questions
49
votes
5 answers

Iframe transparent background

My app has a modal dialog with an iframe inside it. I've written my jQuery code such that when the dialog opens, it sets the appropriate 'src' attribute of the iframe so the content loads up. However, during the delay between the dialog opening and…
brianjcohen
  • 965
  • 2
  • 10
  • 14
45
votes
1 answer

IFrame background transparent in IE

So i have this iFrame with the class .transparentbg: .transparantbg{ background-color: transparent; } This works fine in Chrome, but not in IE... Help please? Greetings
Thew
  • 15,789
  • 18
  • 59
  • 100
44
votes
2 answers

Create a transparent dialog on top of activity

Background I'm trying to put a layer on top of the current activity which would have explanation of what is going on on the current screen, similar to what occurs on contact+ app . I know there are some solutions for this (like the showCase library…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
42
votes
7 answers

How to present a modal atop the current view in Swift

(Xcode6, iOS8, Swift, iPad) I am trying to create a classic Web-like modal view, where the outside of the dialog box is "grayed-out." To accomplish this, I've set the alpha value of the backgroundColor of the view for the modal to 0.5, like…
kmiklas
  • 13,085
  • 22
  • 67
  • 103
41
votes
8 answers

Programmatically make a color more transparent

I'm working on a simple bar graph application that uses a static array of colors for divvying out bar colors. I would like the functionality to either draw bars normally, or slightly transparent. Is there a way to programmatically adjust a color…
TrolliOlli
  • 909
  • 2
  • 10
  • 18
40
votes
12 answers

How do I animate a background color to transparent in jQuery?

I can animate from transparent to color, but when I tell jquery to animate the backgroundColor: 'transparent' it just changes to white. Any idea how to fix this?
Casey
32
votes
1 answer

Transparent PNG in PIL turns out not to be transparent

I have been hitting my head against the wall for a while with this, so maybe someone out there can help. I'm using PIL to open a PNG with transparent background and some random black scribbles, and trying to put it on top of another PNG (with no…
MarkTraceur
  • 323
  • 1
  • 3
  • 7
32
votes
3 answers

Make overlay background click-through-able

Is there a way, in CSS, I can make an element click-through-able. I have an absolutely positioned
covering a link. I'd like to be able to click the link through the overlay
. The overlay has a mostly transparent background, and the link…
Bojangles
  • 99,427
  • 50
  • 170
  • 208
32
votes
5 answers

How to get alpha value of a PNG image with PIL?

How to detect if a PNG image has transparent alpha channel or not using PIL? img = Image.open('example.png', 'r') has_alpha = img.mode == 'RGBA' With above code we know whether a PNG image has alpha channel not not but how to get the alpha value? I…
jack
  • 17,261
  • 37
  • 100
  • 125
31
votes
6 answers

Why is SVG stroke-width : 1 making lines transparent?

I'm creating stock charts with svg and I'm having a problem when I set the stroke-width of my path elements to 1. Instead of making the lines more narrow, it just makes it the same size as stroke-width:2 but slightly transparent. I can't post an…
MattL922
  • 621
  • 2
  • 7
  • 12
28
votes
2 answers

How to make a color transparent in a BufferedImage and save as PNG

I have been searching the web for this, but I havent found any decent help. I have a BufferedImage, which I have read in with ImageIO. Now I would like to make a certain color in that image to transparent, and save the image as PNG. I know I cannot…
corgrath
  • 11,673
  • 15
  • 68
  • 99
28
votes
5 answers

Android OpenGL ES Transparent Background

I'm building an Android app that takes advantage of OpenGL. As it stands, the background for the GLSurfaceView is dynamically generated by my code and loaded in as a texture and drawn with glDrawTexfOES. Which is "ok", but I can simply display the…
mattbasta
  • 13,492
  • 9
  • 47
  • 68
27
votes
5 answers

Clicking through a transparent .png

First off, I would like to say that myspace is a pain. But, musicians love it, and I can make some money doing layouts for them. I overlayed a layer of .png's over myspace's original look, but need to utilize the myspace music player. So, I made a…
gpretty
  • 271
  • 1
  • 3
  • 3
27
votes
2 answers

Transparent status bar - before Android 4.4 (KitKat)

I know in Android 4.4 KitKat (API 19) it's possible to make the status bar transparent. But for example, Go Launcher Ex and others have an option to make it transparent, and it's working on pre KitKat also, for me (Android 4.3 (Jelly Bean)) too and…
bricklore
  • 4,125
  • 1
  • 34
  • 62
27
votes
8 answers

Android 4.4 — Translucent status/navigation bars — fitsSystemWindows/clipToPadding don't work through fragment transactions

When using the translucent status and navigation bars from the new Android 4.4 KitKat APIs, setting fitsSystemWindows="true" and clipToPadding="false" to a ListView works initially. fitsSystemWindows="true" keeps the list under the action bar and…
afollestad
  • 2,929
  • 5
  • 30
  • 44