BLUR a div background with opacity (page background seems blurred through div)
Date : March 29 2020, 07:55 AM
I wish this helpful for you You'd have a much easier job doing the Windows 7 UI without Aero :) That being said, I recommend using the Pixastic Library.
|
Parallax stop background image pos change if scroll exceeds bg image size
Date : March 29 2020, 07:55 AM
this one helps. orgH and orgW will be 0 on execution, since you are creating a new Image asynchronously, while executing your code synchronously: var tmpImg = new Image();
tmpImg.src = bg;
//...
tmpImg.onload = function(ev) {
var orgW = tmpImg.width;
var orgH = tmpImg.height;
//and the rest of your code...
}
|
Parallax background image scroll without using css background property
Date : March 29 2020, 07:55 AM
wish of those help Some time ago, I built these two examples with a parralax effect very similar to what you are looking for: this example using simple jQuery to update the position of the image and title on scroll this example using only CSS with 3D positioning to simulate the parralax effect on the image $( document ).ready(function() {
var $window = $(window);
function scroll_elements(){
var scroll = $window.scrollTop();
var scrollLayer = scroll/1.4;
$(".project-image").css(
"-webkit-transform","translate3d(0," + scrollLayer + "px,0)",
"transform","translate3d(0," + scrollLayer + "px,0)"
);
}
$window.scroll(scroll_elements);
});
.project-image {
position:relative;
z-index:1;
}
.img-responsive {
display:block;
max-width:100%;
height:auto;
margin:0 auto;
}
h1, .project-description {
position:relative;
max-width:500px;
z-index:2;
background:rgba(255,255,255,.7);
margin:0 auto;
padding:10px 20px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="project-details">
<div class="project-image">
<img src="http://placehold.it/350X225" class="img-responsive">
</div>
<h1>
Project Title
</h1>
<p class="project-description">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
<br/>
<br/>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
<br/>
<br/>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
</div>
|
Tag : css , By : user170635
Date : March 29 2020, 07:55 AM
it helps some times I'm working on a header that shrinks down to 40px + blurs the background-image when you scroll which works fine, however when i do scroll, because of the blur, you can kind of see content peaking through the blurred header as you go down the page. I'm still learning all of the css transitions and filters, so I was wondering if there's a way to prevent this? , You need to lessen the amount of blur from 10px to around 3-5px; .blur-header{
height:40px;
-webkit-filter: blur(3px) brightness(1);
-moz-filter: blur(3px) brightness(1);
-o-filter: blur(3px) brightness(1);
-ms-filter: blur(3px) brightness(1);
transition: all 0.3s ease-in-out;
}
|
Background application UI has to become blurred when the user sends the foreground app to background by pressing the dev
Date : March 29 2020, 07:55 AM
this one helps. Set this in onCreate method between super.onCreate(savedInstanceState) and setContentView: // White image on recent apps overview and disable screenshot functionality
window.setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE)
|