-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathindex3.html
More file actions
executable file
·159 lines (132 loc) · 5.51 KB
/
index3.html
File metadata and controls
executable file
·159 lines (132 loc) · 5.51 KB
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
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PFold: Paper-Like Unfolding Effect</title>
<meta name="description" content="PFold: Paper-Like Unfolding Effect" />
<meta name="keywords" content="css3, experiment, 3d, unfolding, fold, paper, component, element, web design, jquery, plugin, perspective" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/pfold.css" />
<link rel="stylesheet" type="text/css" href="css/custom2.css" />
<script type="text/javascript" src="js/modernizr.custom.79639.js"></script>
<!--[if lte IE 8]><style>.support-note .note-ie{display:block;}</style><![endif]-->
<style>
body {
background-image: url(images/bg2.jpg);
}
</style>
</head>
<body>
<div class="container">
<!-- Codrops top bar -->
<div class="codrops-top clearfix">
<a href="http://tympanus.net/Tutorials/CustomLoginFormStyling/">
<strong>« Previous Demo: </strong>Custom Login Form Styling
</a>
<span class="right">
<a href="http://dribbble.com/twistedfork">Images by Dan Matutina</a>
<a href="http://tympanus.net/codrops/?p=11459">
<strong>Back to the Codrops Article</strong>
</a>
</span>
</div><!--/ Codrops top bar -->
<header>
<h1><strong>PFold:</strong> Paper-Like Unfolding Effect</h1>
<h2>Paper-like unfolding effect experiment</h2>
<nav class="codrops-demos">
<a href="index.html">Demo 1</a>
<a href="index2.html">Demo 2</a>
<a class="current-demo" href="index3.html">Demo 3</a>
</nav>
<div class="support-note"><!-- let's check browser support with modernizr -->
<span class="no-csstransforms3d">CSS 3D transforms are not supported in your browser</span>
<span class="note-ie">Sorry, only modern browsers.</span>
</div>
</header>
<section class="main demo-2">
<div id="grid" class="grid clearfix">
<div class="uc-container">
<div class="uc-initial-content">
<img src="images/thumbs/3.jpg" alt="image03" />
<span class="icon-eye"></span>
</div>
<div class="uc-final-content">
<img src="images/large/3.jpg" alt="image03-large" />
<div class="title"><h4>Angry Nerd Blofeld</h4> by Dan Matutina <a href="http://drbl.in/eLEa" class="icon-link"></a></div>
<span class="icon-cancel"></span>
</div>
</div><!-- / uc-container -->
<div class="uc-container">
<div class="uc-initial-content">
<img src="images/thumbs/1.jpg" alt="image01" />
<span class="icon-eye"></span>
</div>
<div class="uc-final-content">
<img src="images/large/1.jpg" alt="image01-large" />
<div class="title"><h4>The Professor</h4> by Dan Matutina <a href="http://drbl.in/dMLS" class="icon-link"></a></div>
<span class="icon-cancel"></span>
</div>
</div><!-- / uc-container -->
<div class="uc-container">
<div class="uc-initial-content">
<img src="images/thumbs/2.jpg" alt="image02" />
<span class="icon-eye"></span>
</div>
<div class="uc-final-content">
<img src="images/large/2.jpg" alt="image02-large" />
<div class="title"><h4>Planet</h4> by Dan Matutina <a href="http://drbl.in/eZoL" class="icon-link"></a></div>
<span class="icon-cancel"></span>
</div>
</div><!-- / uc-container -->
<div class="uc-container">
<div class="uc-initial-content">
<img src="images/thumbs/4.jpg" alt="image04" />
<span class="icon-eye"></span>
</div>
<div class="uc-final-content">
<img src="images/large/4.jpg" alt="image04-large" />
<div class="title"><h4>Ero Senin</h4> by Dan Matutina <a href="http://drbl.in/dJfK" class="icon-link"></a></div>
<span class="icon-cancel"></span>
</div>
</div><!-- / uc-container -->
</div><!-- / grid -->
<p class="info"><strong>Demo 3:</strong> Same as demo 2, item will be centered on its original position</p>
</section>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.pfold.js"></script>
<script type="text/javascript">
$(function() {
// say we want to have only one item opened at one moment
var opened = false;
$( '#grid > div.uc-container' ).each( function( i ) {
var $item = $( this ), direction;
switch( i ) {
case 0 : direction = ['right','bottom']; break;
case 1 : direction = ['left','bottom']; break;
case 2 : direction = ['right','top']; break;
case 3 : direction = ['left','top']; break;
}
var pfold = $item.pfold( {
folddirection : direction,
speed : 300,
onEndFolding : function() { opened = false; },
centered : true
} );
$item.find( 'span.icon-eye' ).on( 'click', function() {
if( !opened ) {
opened = true;
pfold.unfold();
}
} ).end().find( 'span.icon-cancel' ).on( 'click', function() {
pfold.fold();
} );
} );
});
</script>
</body>
</html>