opacity

JS setInterval() only runs once when animating opacity

孤人 提交于 2019-12-11 20:29:13
问题 I've searched and seen that most people with this problem are passing a function call rather than function name ie: setInterval(myFunc(),100) instead of setInterval(myFunc,100) But I'm not, and it still won't work... I also saw a lot of people saying you need to parseFloat on the opacity to get it to work, I've tried that and it still yields the same result... The function runSubMenu1() appears to run just one time regardless of whether i include the if(i.style.opacity==1) clause or not Not

Layering Rectangles on a Canvas Causes Opacity to Increase

筅森魡賤 提交于 2019-12-11 20:29:11
问题 I am making annotations on images using a jpeg image and rectangles that I am drawing onto the image. I can then transfer the image to a canvas, and, using a for-loop, I can grab the bounds of the rectangular divs that I had drawn on the image to re-draw on the canvas. The problem arises when I have multiple rectangles because the opacity decreases on each subsequent rectangle due to the fact that they are being layered, as such: ` function drawRectangleToCanvas(left, top, width, height,

WinForms window drag event

点点圈 提交于 2019-12-11 14:53:28
问题 Is there an event in WinForms that get's fired when a window is dragged? Or is there a better way of doing what I want: to drop the window opacity to 80% when the window is being dragged around? Unfortunately this is stupidly tricky to search for because everyone is looking for drag and drop from the shell, or some other object. 回答1: It's the LocationChanged event you want: private void YourApp_LocationChanged(object sender, EventArgs e) { this.Opacity = 0.8; } You'll have to override WndProc

Red bg + black field with opacity on 85 = pink text

自作多情 提交于 2019-12-11 13:45:19
问题 <style> * { background: red; } .blackbalk{ background:black; ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)"; filter:alpha(opacity=85); -khtml-opacity:.85; -moz-opacity:.85; opacity:.85; width: 985px; margin: 0 auto; height:255px; color: white; } </style> <div class="blackbalk">Text </div> Now my text gets pink, why? How can i get it white again? Greetings Edit: JS Fiddle to make it clear: http://jsfiddle.net/WFxbH/ 回答1: You can do it by instead using an rgba background on

Unable to change navigation bar opacity

一曲冷凌霜 提交于 2019-12-11 13:13:55
问题 I am trying to style my app in the following way, however i am unable to get my navigation bar to reach this level of opacity I use the following code to style the navigation bar: unc application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { UINavigationBar.appearance().barTintColor = UIColor(red: 1, green: 1, blue: 1, alpha: 0.1) UINavigationBar.appearance().tintColor = UIColor.whiteColor() UINavigationBar.appearance()

Opacity css affecting children elements

て烟熏妆下的殇ゞ 提交于 2019-12-11 13:06:40
问题 I am trying to implement an error message when user has disabled javascript. I have created a jsfiddle for my current work. I have 2 div layers one covering the whole page and an another one on top of that to show the warning message, but the opacity settings affects for the cover layer affects the warning message also. I have tried using the techniques from previous questions but I could not make it work. Can anyone help me? http://jsfiddle.net/xcPcv/ 回答1: Just move the message outside of

JLabel retains previous text

笑着哭i 提交于 2019-12-11 11:59:59
问题 When spending a few minutes tweaking my desktop clock, I discovered a problem that I seem unable to resolve without help... I read some posts with similar problem but solutions did not work for me. The clock (in typical java form with an Action Listener and Calendar) works just fine. The intended tweak: To set the Frame, ContentPane and Label backgrounds to transparent so only the time/text shows . What happens is this: When the label background is transparent (or until it's opaque enough by

JWindow region opacity

余生颓废 提交于 2019-12-11 08:32:53
问题 I want to implement a screenshot functionality like in snipping tool. I can already select a rectangle and make a screenshot, but I this rectangle to be full opacity. I wonder if there is a function in Swing or AWT which I can use like this: window.setOpacityAt(Rectangle r, 0.5f); I hope you got my problem! 回答1: See How to Create Translucent and Shaped Windows: How to Implement Per-Pixel Translucency. 来源: https://stackoverflow.com/questions/16373327/jwindow-region-opacity

Opacity slider for a fabric object

南笙酒味 提交于 2019-12-11 08:08:06
问题 I have a canvas and it includes fabric objects.I want to do opacity slider for text area's backround "textbackroundColor" in canvas.How can I do slide and change functions? $("#backgroundOpacity").slider( { min: 10, max: 50, value: 30, slide: text_bgColor_slider_moved, change: text_bgColor_slider_changed }); 回答1: first get active object of canvas var activeObject = canvas.getActiveObject(); and then $("#backgroundOpacity").slider( { max : 100, value : activeObject.opacity * 100, slide:

Raphael div opacity not working on IE

给你一囗甜甜゛ 提交于 2019-12-11 06:29:28
问题 I'm trying to figure out how to make rectangles with opacities that work on IE (FF/Chrome/Safari are all fine). I've tried creating a class in my CSS file .opacity60 { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; filter: alpha(opacity=60); } and then tried to create a rectangle using the following code: var rIn = Raphael("sideIn", "100%", "100%"); rIn.rect(0, 0, "100%", "100%").attr({fill:"black", stroke:"none", opacity:0.6 }); rIn.rect.node.setAttribute('class',