overlay

How to add 'shine' overlay to a div?

ⅰ亾dé卋堺 提交于 2019-12-05 21:48:55
How can I add a nice overlay like the one in the following image? Consider the following HTML, how would I add an overlay like that? I know I can use a gradient on top of it, and apply it diagonally, but can I curve it as well? <div class="photostrip"> <div class="overlay" /> <img src="http://i.imgur.com/a21tM.jpg" /> <img src="http://i.imgur.com/a21tM.jpg" /> <img src="http://i.imgur.com/a21tM.jpg" /> </div> Here's something I've tried (I've oversaturated the overlay so it's easily seen), but it's not quite the shape I'm looking for. body { background-color: #4b74db; } .photostrip { margin: 0

Primefaces 5 overlayPanel broken after update

时光毁灭记忆、已成空白 提交于 2019-12-05 20:35:07
Today I discovered a new bug in P5. When I update the button which the overlay panel is referring to, it doesn't work anymore - The overlaypanel is not shown anymore. As a workaround I do use PF('widgetVar').loadContents(); but this feels very uncomfortable. In PF4 this did work without any workarounds. Anyone got some solution? I don't know exactly what you are pointing at. What do you mean with updating the button? For me the following code works fine with PrimeFaces 5.0: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java

Prevent background scrolling when overlay appears

无人久伴 提交于 2019-12-05 19:59:22
I have written my own modal classes using css and have used it in my application successfully. However the issue i'm facing is when the overlay is open i can still scroll the background contents. How can i stop scrolling background contents when my modal/overlay is open? This is my modal which opens on top of the overlay <div> <div className="overlay"></div> {this.props.openModal ? <div> <div className="polaroid sixten allcmnt_bg_clr horiz_center2"> {} <div className="mobile_header"> <PostHeader/> </div> <div className="mobile_renderPost"> { this.renderPostType() } </div> <div className=

(ionic) How can I make side menu overlaying contact?

梦想的初衷 提交于 2019-12-05 16:27:01
Recently, I tried creating an Ionic side menu. I want to make the side menu overlaying contact. I do not want to push content, however. <ion-side-menus> <!-- Center content --> <ion-side-menu-content ng-controller="ContentController"> </ion-side-menu-content> <!-- Left menu --> <ion-side-menu side="left"> </ion-side-menu> <!-- Right menu --> <ion-side-menu side="right"> </ion-side-menu> <ion-side-menu-content> <!-- Main content, usually <ion-nav-view> --> </ion-side-menu-content> </ion-side-menus> function ContentController($scope, $ionicSideMenuDelegate) { $scope.toggleLeft = function() {

Android appwide view overlay (HUD)

只谈情不闲聊 提交于 2019-12-05 15:55:31
I want to overlay a view over my entire app, all activities included. Think of it as a HUD (Head Up Display) over my app. The app has multiple activities, including a tab activity and the HUD doesn't interact with the user in any way, it just displays information while letting the user interact with the app as she would normally. I want this HUD for debugging purposes so I (and others) can monitor app activity and state when the phone is not attached to a debugging machine (field testing). How do I do add such a view? I've tried using WindowManager.addView() like so: WindowManager.LayoutParams

Imagemagick gif overlay preserves alpha on background

做~自己de王妃 提交于 2019-12-05 15:23:31
I am using this code to build an animated gif from a sequence of pngs: convert -dispose previous -resize 400x400 -delay 10 *.png -loop 0 -coalesce -layers Optimize output.gif. it creates a gif with transparency, but when I overlay it over a jpg background, I get a weird result where a transparent box remains in the final image under my moving gif but over the jpg. From my tests, it seems this is a problem with the way I am building the original gif, but I have no idea. Also, I am stuck using GoDaddy's built in version of ImageMagick, which is 6.2.8 and sucks...all help and support seem to be

Capture camera view and onverlay in an image

☆樱花仙子☆ 提交于 2019-12-05 14:41:30
I open the camera view and place an image as an overlay. I then want to save both the overlay and the camera view's image as one image. Previously I achieved this using UIGetScreenImage(). Now that Apple forbid this what are my options ? takePicture will only capture the camera data but the the overlay. Merging the overlay with the image from takePicture is a bit slow. You really will have to merge them, and it shouldn't take more than a second or two. Something like(untested, but should give an idea): UIGraphicsBeginImageContext(myCapturedImage.size); [myCapturedImage drawAtPoint:CGPointZero]

how can i take a screenshot of camera screen using a button in react native?

此生再无相见时 提交于 2019-12-05 13:07:09
I use a react native camera and a overlaying image on my app. Now i want to take a screenshot of that screen using a button. But when i take screenshot then only the overlaying image are shown on the image. i need to capture the screen with camera view and the overlaying image also. return ( <Camera ref={(cam) => { this.camera = cam; }} style={styles.preview} aspect={Camera.constants.Aspect.fill} captureTarget={Camera.constants.CaptureTarget.disk} > <Image style={{width: 400, height: 400}} source={require('./image/shilpamela.png')} /> <TouchableHighlight style={styles.capture} //onPress={this

Overlay Electron

可紊 提交于 2019-12-05 12:43:09
I am wondering if it is possible to overlay an application made in electron over a game. essentially similar to how steam overlays in games. I want this because we have made a timer web app that times tasks and are debating making it an overlay if possible. to time certain events in games that reoccur I have no idea if this can be achieved but it is something high on our list. Any example of how this can be achieved or has anyone done this before. Thanks, Kieran To draw overlay in a game, you need hook Direct3D or OpenGL api according to which the game use. And before present call(in D3D), you

Display overlay to cover whole page

帅比萌擦擦* 提交于 2019-12-05 10:35:52
I have a web app which is loading within an iframe . I need to display an overlay div to cover the whole page. The problem is that the overlay is currently displaying only in the iframe area and not covering the whole page, (Our application (a child application) is part of a set of applications loading in iframe ) You can do something like this <div id="overlay"></div> CSS #overlay { position:fixed; top:0; left:0; bottom:0; right:0; height: 100%; width: 100%; margin: 0; padding: 0; background: #000000; opacity: .3; filter: alpha(opacity=30); -moz-opacity: .3; z-index: 101; } Sample Try