<!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="example@gmail.com" 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>