-
Notifications
You must be signed in to change notification settings - Fork 0
/
practical.html
382 lines (352 loc) · 11.7 KB
/
practical.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<!DOCTYPE html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-114596253-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-114596253-1');
</script>
<title>Practicals</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/practical.css">
<link href="https://fonts.googleapis.com/css?family=Lato|Montserrat|Open+Sans|Open+Sans+Condensed:300|PT+Sans|Raleway|Roboto" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Berkshire+Swash" rel="stylesheet">
<link href="https://use.fontawesome.com/releases/v5.0.8/css/all.css" rel="stylesheet">
<meta name="viewport" content="width=device-width , initial-scale=1.0">
</head>
<body>
<div class="allcontent">
<section class="page1">
<h1 style="margin:10%">CSS Transitions and Transformation</h1>
<p> Transforms - move or change the appearance of an element, and<br>Transitions - make the element smoothly and gradually change from one state to another.</p>
<p>When used together, these properties allow you to create simple animations and add valuable interaction and visual feedback for your users.</p>
<h3>Features</h3>
<ul class="features">
<li>countless possibilities</li>
<li>really simple to implement.</li>
<li>Just a couple of lines of code will give you an awesome effect</li>
<li>No need for any external library or plugin</li>
<li>increase engagement and conversions.</li>
</ul>
</section>
<section class="page3">
<h2 class="title">CSS transforms</h2>
<p>With the CSS transform property you can rotate, move, skew, and scale elements.
Transforms are triggered when an element changes states, such as on mouse-hover or mouse-click. </p>
<p>translate, scale ,rotate ,skew etc</p>
<h2 class="subtitle">translate</h2>
<p>The translate value moves an element left/right and up/down A positive X value moves the element to the right, while a negative X moves the element to the left. A positive Y value moves the element downwards and a negative Y value, upwards.</p>
<div class="demo">
<div class="box01"><div class="box box1"></div></div>
</div>
<code>
.box1:hover {
transform: translateX(200px);
}
</code>
<h2 class="subtitle">scale</h2>
<p>The scale value allows you to increase or decrease the size of an element.
For example, the value 2 would transform the size to be 2 times its original size. The value 0.5 would transform the size to be half its original size.</p>
<div class="demo">
<div class="box box2"></div>
</div>
<code>
.box2:hover {
transform: scale(2);
}
</code>
<h2 class="subtitle">rotate</h2>
<p>With the rotate value, the element rotates clockwise or counterclockwise by a specified number of degrees. A positive value, such as 90deg, rotates the element clockwise, while a negative value, such as -90deg, rotates it counterclockwise.</p>
<div class="demo">
<div class="box box3"></div>
</div>
<code>
.box3:hover {
transform: rotate(110deg);
}
</code>
<h2 class="subtitle">Skew</h2>
<p>Used to skwe a div</p>
<div class="demo">
<div class="box box4"></div>
</div>
<code>
.box4:hover {
transform: skew(50deg);
}
</code>
<h2 class="subtitle">Matrix</h2>
<p>Used to matrix a div</p>
<div class="demo">
<div class="box box5"></div>
</div>
<code>
.box5:hover {
transform: matrix(1, -0.3,0,1,0,0);
}
</code>
</section>
<section class="page4">
<h2 class="title">CSS transitions</h2>
<p>Without a transition, an element being transformed would change abruptly from one state to another. By applying a transition you can control the change, making it smooth and gradual.</p>
<p>Shorthand syntax for transition is</p>
<code>
div {<br>
transition: [property] [duration] [timing-function] [delay];<br>
}
</code>
<!-- <h2 class="subtitle">transition-property</h2>
<p>The transition-property specifies the CSS property where the transition will be applied. </p>
<h2 class="subtitle">transition-duration</h2>
<p>The transition-duration property specifies the time span of the transition. You can specify in seconds or milliseconds.</p>
<h2 class="subtitle">transition-timing</h2>
<p>The transition-timing-function property allows you to define the speed of the transition over the duration. The default timing is ease, which starts out slow, quickly speeds up, and then slows down at the end. The other timing options are: linear, ease, ease-in, ease-out, and ease-in-out.</p>
<h2 class="subtitle">transition-delay</h2>
<p>The transition-delay property allows you to specify when the transform will start.</p> -->
</section>
</div>
<h1 style="margin-bottom:0%"> CSS Transition Table</h1>
<section class="gridcontainer">
<div class="griditem item1 horse">
<h2>Transformation</h2>
</div>
<div class="griditem item2 horse">
<h2>Before</h2>
</div>
<div class="griditem item3 horse">
<h2>After</h2>
</div>
<div class="griditem item4 horse">
<h2>Translate</h2>
</div>
<div class="griditem item5">
<div class="box box6"></div>
</div>
<div class="griditem item6">
<div class="box box6"></div>
</div>
<div class="griditem item7 horse">
<h2>Scale</h2>
</div>
<div class="griditem item8">
<div class="box box7"></div>
</div>
<div class="griditem item9">
<div class="box box7"></div>
</div>
<div class="griditem item10 horse">
<h2>Rotate</h2>
</div>
<div class="griditem item11">
<div class="box box8"></div>
</div>
<div class="griditem item12">
<div class="box box8"></div>
</div>
<div class="griditem item13 horse">
<h2>Skew</h2>
</div>
<div class="griditem item14">
<div class="box box9"></div>
</div>
<div class="griditem item15">
<div class="box box9"></div>
</div>
<div class="griditem item16 horse">
<h2>Matrix</h2>
</div>
<div class="griditem item17">
<div class="box box10"></div>
</div>
<div class="griditem item18">
<div class="box box10"></div>
</div>
</section>
<section>
<h1>Embedding Audio and Video</h1>
<div class="song">
<audio controls>
<source src="img/havana.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</div>
<div class="movie">
<video width="50%" height="auto" controls>
<source src="img/lucas.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</section>
<section class="animation">
<h1>CSS3 Animation</h1>
<div class="animationbox">
<div class="sky">
</div>
<div class="ground"></div>
<div class="sun"></div>
</div>
</section>
<section class="threed">
<h1>CSS3 3D Transformations</h1>
<h1>Cube</h1>
<div class="wrap">
<div class="cube">
<div class="front">front</div>
<div class="back">back</div>
<div class="top">top</div>
<div class="bottom">bottom</div>
<div class="left">left</div>
<div class="right">right</div>
</div>
</div>
<h1>Perspective</h1>
<div id="red">
<div class="box"></div>
</div>
<h1>Carousel</h1>
<div class="container">
<div class="carousel">
<div class="item a">A</div>
<div class="item b">B</div>
<div class="item c">C</div>
<div class="item d">D</div>
<div class="item e">E</div>
<div class="item f">F</div>
</div>
</div>
<div class="next">Next</div>
<div class="prev">Prev</div>
<h1>Card Flip :</h1>
<div class="container">
<div id="card">
<figure class="front">1</figure>
<figure class="back">2</figure>
</div>
</div>
<!-- <h1>Rectangular Prism</h1>
<div class='cube prismm'>
<div class='front'></div>
<div class='top'></div>
<div class='left'></div>
<div class='right'></div>
<div class='back'></div>
<div class='bottom'></div>
</div> -->
</section>
<section class="exp6" style="margin-top:9rem;">
<h2 >Text Shadows </h2>
<h1 class="shade" style="margin: 0.5rem 0;"x>StyleWell Interiors</h1>
<h2>Gradient Backgrounds </h2>
<div class="bx">
</div>
<h2>Multiple Backgrounds </h2>
<div class="shaun"></div>
<h2>Background Gradient to make patterns</h2>
<div class="bx1"></div>
<h2>Font face rule</h2>
<!-- <h1 class="poo">StyleWell Interiors</h1> -->
<div class="aw">
<!-- <i width="500px" class="fas fa-anchor"></i> -->
<img src="img/anchor.png">
</div>
<br>
<br>
</section>
<section>
<div class="form1">
<h1>Contact Us</h1>
<form action="#" method="post" autocomplete"on">
<div class="row">
<label for="firstname">First Name:</label>
<input type="text" name="firstname" value="" id="firstname" placeholder="First name" autofocus required>
<label for="lastname">Last Name:</label>
<input type="text" name="lastname" value="" id="lasttname" placeholder="Last name" autofocus required>
</div>
<div class="row">
<label for="email">Email:</label>
<input type="email" name="email" id="email" placeholder="[email protected]" required>
</div>
<div class="row">
<label for="password">Password:</label>
<input type="password" name="pwd" id="password">
</div>
<div class="row">
<label for="gender">Gender: </label>
<input type="radio" name="gender" value="male" id="gender">Male
<input type="radio" name="gender" value="female" id="gender">Female
<input type="radio" name="gender" value="other" id="gender">Other
</div>
<div class="row">
<label for="categories">You want to redign your:</label>
<select name="categories" id="categories">
<option value="livingspaces">Living Spaces</option>
<option value="kitchen">Kitchen</option>
<option value="terraces">Terraces</option>
</select>
</div>
<div class="row">
<label for="">Select City</label>
<input list="cities">
<datalist id="cities">
<option value="Mumbai"></option>
<option value="Pune"></option>
<option value="chennai"></option>
<option value="navi mumbai"></option>
<option value="Delhi"></option>
</datalist>
</div>
<div class="row">
<label for="birthday">Birthday:</label>
<input type="date" name="bday" id="birthday" placeholder="Your Birthday">
</div>
<div class="row">
<label for="tel">Telephone no:</label>
<input type="tel" name="tel" id="tel">
</div>
<div class="row">
<label for="message" placeholder="Your description">Describe</label>
<textarea name="message" id="message" cols="70" rows="10"></textarea>
</div>
<div class="row">
<input type="submit" value="submit">
<input type="reset">
</div>
</form>
</div>
</section>
<section>
<div id="demo">
<h2>AJAX Experiment</h2>
<button type="button" onclick="loadDoc()">Change Content</button>
</div>
</section>
<div id="googleMap" style="width:100%;height:400px;"></div>
<script>
function loadDoc() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML =
this.responseText;
}
};
xhttp.open("GET", "https://poojavpatel.github.io/ajaxtest/index.html", true);
xhttp.send();
}
</script>
<script>
function myMap() {
var mapProp= {
center:new google.maps.LatLng(19.2435,72.8555),
zoom:5,
};
var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC1HNuh0I3lOhiDk2tAkSwVs2C5nLUWWSc&callback=myMap"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
</body>
</html>