-
Notifications
You must be signed in to change notification settings - Fork 34
/
jquery.fs.wallpaper.css
36 lines (29 loc) · 1.55 KB
/
jquery.fs.wallpaper.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Wallpaper v3.1.19 - 2015-04-04
* A jQuery plugin for smooth-scaling image and video backgrounds. Part of the Formstone Library.
* http://classic.formstone.it/wallpaper/
*
* Copyright 2015 Ben Plum; MIT Licensed
*/
.wallpaper,
.wallpaper .wallpaper-container,
.wallpaper .wallpaper-media {
-webkit-transition: none !important;
transition: none !important;
}
.wallpaper { overflow: hidden; position: relative; }
.wallpaper .wallpaper-container { height: 100%; overflow: hidden; position: absolute; top: 0; width: 100%; z-index: 0; }
.wallpaper .wallpaper-media { left: 0; opacity: 0; position: absolute; top: 0; }
.wallpaper .wallpaper-media.animated {
-webkit-transition: opacity 0.5s linear !important;
transition: opacity 0.5s linear !important;
}
.wallpaper .wallpaper-media img,
.wallpaper .wallpaper-media video,
.wallpaper .wallpaper-media iframe { display: block; height: 100%; width: 100%; }
.wallpaper .wallpaper-embed.ready:after { content: ''; height: 100%; left: 0; position: absolute; top: 0; width: 100%; z-index: 1; }
.wallpaper .wallpaper-embed.ready iframe { /* pointer-events: none; - safari doesn't like this :/ */ z-index: 0; }
.wallpaper .wallpaper-media.native { background-position: center; background-size: cover; height: 100%; width: 100%; }
.wallpaper .wallpaper-media.native img { display: none; }
.wallpaper .wallpaper-media.fixed { background-position: center; background-attachment: fixed; height: 100%; width: 100%; }
.wallpaper .wallpaper-media.fixed img { display: none; }