» » background

 
Sort articles by: Date | Most Rates | Most Views | Comments | Alphabet

Fixed background and scrolling page effect with CSS

Author: bamboo06 on 13-08-2016, 01:54, views: 9047

7 How to create a just simply and none requiring javascript and CSS property of background-attachment can be realized fixed page backgrounds and scrolling effect. We see that there are many project sites use parallax effect, parallax is generated by the dynamic changes and the background image and js script, but today we only need CSS.
Fixed background and scrolling page effect with CSS

HTML structure is very simple, a background image is fixed placement class .cd-fixed-bg div element for a class of .cd-scrolling-bg div element portion for scrolling. We can place multiple .cd-fixed-bg and .cd-scrolling-bg group.

Category: CSS

 

Use Javascript to control the background Close with Cookie

Author: bamboo06 on 13-11-2014, 02:38, views: 2972

3 Whenever significant during the holiday season, the major mainstream Home will put festive costumes, designers typically use a substantial background pictures to get a better visual impact, of course, also taking into account that some users are not accustomed to this great background, then place the "Close" button in the background is necessary, users simply click on the "Close background" button, a substantial background image will disappear.
Use Javascript to control the background Close with Cookie

We use javascript to control the background image to show and hide, when you click the close button, so that the page does not load control CSS background image while recording COOKIE parameters and set the cookie is valid, then refresh the page in the cookie is valid, is not reloading background, and if the cookie fails, the background image will reload.

Category: Javascript