forked from alvarotrigo/fullPage.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackgroundsFixed.html
151 lines (127 loc) · 5.09 KB
/
backgroundsFixed.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fixed fullscreen backgrounds - fullPage.js</title>
<meta name="author" content="Alvaro Trigo Lopez" />
<meta name="description" content="fullPage fixed full-screen backgrounds." />
<meta name="keywords" content="fullpage,jquery,demo,screen,fixed,fullscreen,backgrounds,full-screen" />
<meta name="Resource-type" content="Document" />
<link rel="stylesheet" type="text/css" href="../jquery.fullPage.css" />
<link rel="stylesheet" type="text/css" href="examples.css" />
<style>
/* Style for our header texts
* --------------------------------------- */
h1{
font-size: 5em;
font-family: arial,helvetica;
color: #fff;
margin:0;
padding:0;
}
/* Centered texts in each section
* --------------------------------------- */
.section{
text-align:center;
}
/* Backgrounds will cover all the section
* --------------------------------------- */
#section0,
#section1,
#section2,
#section3{
background-size: cover;
background-attachment: fixed;
}
/* Defining each sectino background and styles
* --------------------------------------- */
#section0{
background-image: url(imgs/bg1.jpg);
padding: 30% 0 0 0;
}
#section2{
background-image: url(imgs/bg3.jpg);
padding: 6% 0 0 0;
}
#section3{
background-image: url(imgs/bg4.jpg);
padding: 6% 0 0 0;
}
#section3 h1{
color: #000;
}
/*Adding background for the slides
* --------------------------------------- */
#slide1{
background-image: url(imgs/bg2.jpg);
padding: 6% 0 0 0;
}
#slide2{
background-image: url(imgs/bg5.jpg);
padding: 6% 0 0 0;
}
/* Bottom menu
* --------------------------------------- */
#infoMenu li a {
color: #fff;
}
</style>
<!--[if IE]>
<script type="text/javascript">
var console = { log: function() {} };
</script>
<![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="../jquery.fullPage.js"></script>
<script type="text/javascript" src="examples.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#fullpage').fullpage({
verticalCentered: false,
//to avoid problems with css3 transforms and fixed elements in Chrome, as detailed here: https://github.com/alvarotrigo/fullPage.js/issues/208
css3:false
});
});
</script>
</head>
<body>
<a href="https://github.com/alvarotrigo/fullPage.js" id="githubLink"><img style="position: fixed;z-index:99; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" alt="Fork me on GitHub"></a>
<select id="demosMenu">
<option selected>Choose Demo</option>
<option id="backgrounds">Background images</option>
<option id="backgroundVideo">Background video</option>
<option id="gradientBackgrounds">Gradient backgrounds</option>
<option id="backgroundsFixed">Fixed fullscreen backgrounds</option>
<option id="looping">Looping</option>
<option id="noAnchor">No anchor links</option>
<option id="scrollingSpeed">Scrolling speed</option>
<option id="easing">Easing</option>
<option id="callbacks">Callbacks</option>
<option id="css3">CSS3</option>
<option id="continuous">Continuous scrolling</option>
<option id="normalScroll">Normal scrolling</option>
<option id="scrollBar">Scroll bar enabled</option>
<option id="scrolling">Scroll inside sections and slides</option>
<option id="navigationV">Vertical navigation dots</option>
<option id="navigationH">Horizontal navigation dots</option>
<option id="fixedHeaders">Fixed headers</option>
<option id="apple">Apple iPhone demo (animations)</option>
<option id="oneSection">One single section</option>
<option id="responsiveHeight">Responsive Height</option>
<option id="responsiveWidth">Responsive Width</option>
<option id="methods">Methods</option>
</select>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://alvarotrigo.com/fullPage/" data-text="Great plugin to create fullscreen scrolling websites: http://alvarotrigo.com/fullPage/">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<div id="fullpage">
<div class="section " id="section0"><h1>fullPage.js</h1></div>
<div class="section" id="section1">
<div class="slide" id="slide1"><h1>Slide Backgrounds</h1></div>
<div class="slide" id="slide2"><h1>Totally customizable</h1></div>
</div>
<div class="section" id="section2"><h1>Lovely images <br />for a lovely page</h1></div>
<div class="section" id="section3"><h1>One Image = One thousand words</h1></div>
</div>
</body>
</html>