Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tanyagarg24 committed Jan 29, 2020
0 parents commit 67131bf
Show file tree
Hide file tree
Showing 17 changed files with 6,280 additions and 0 deletions.
Binary file added 1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions backface.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<style>
#MainWrap{
width: 250px;
height: 250px;
perspective: 200px;

}
#front, #back{
width:250px;
height:250px;
position:absolute;
backface-visibility: hidden;
}
#back{
background:rgba(1, 1, 1, 0.6);
transform:rotateY(180deg);

}
#image{
width: 250px;
height: 250px;
position:absolute;
transform-style: preserve-3d;
transition:all 2s linear;

}
#MainWrap:hover #image{
transform:rotateY(180deg);
}

</style>
<body>
<div id="MainWrap">
<div id="image">
<div id="front">
<img src="1.jpg" width="250px" height="250px"/></div>
<div id="back">
<p>Tanya garg</p>
</div>
</div>
</div>
Binary file added flip/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added flip/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added flip/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions flip/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.image {
transition-duration: 1s;
transition-property: transform;
}
.image:hover {
transform: rotate(360deg);
}
15 changes: 15 additions & 0 deletions flip/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<link rel="stylesheet" href="css/style.css">
<body>

<!-- <div id="rotate"> -->
<img src="1.jpg" width="50px" height="50px"
class="image" />
<img src="2.jpg" width="50px" height="50px"
class="image" />
<img src="3.jpg" width="50px" height="50px"
class="image" />
<img src="1.jpg" width="50px" height="50px"
class="image" />
<img src="2.jpg" width="50px" height="50px"
class="image" />
</div>
Binary file added light/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added light/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added light/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions light/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
@-webkit-keyframes photopresent {
0% { width: 0; height: 0; opacity: 0; }
30% { width: 640px; height: 0; opacity: 0; }
60% { width: 640px; height: 427px; opacity: 0; margin: 20px; }
100% { width: 640px; height: 427px; opacity: 1; margin: 20px; }
}
@keyframes photopresent {
0% { width: 0; height: 0; opacity: 0; }
30% { width: 640px; height: 0; opacity: 0; }
60% { width: 640px; height: 427px; opacity: 0; margin: 20px; }
100% { width: 640px; height: 427px; opacity: 1; margin: 20px; }
}
html { min-height: 100%; position: relative; }
body { margin: 0; height: 100%; margin-right: 2em; background: #110; }
dl { float: left; }
dd a {
background: #fff; display: inline-block;
-webkit-transition: 4s -webkit-box-shadow ease-in;
transition: 4s -webkit-box-shadow ease-in;
transition: 4s box-shadow ease-in;
transition: 4s box-shadow ease-in, 4s -webkit-box-shadow ease-in;
}
dt { margin-left: 1.2rem; width: 150px; margin-top: 1.2rem; }
dt img { width: 150px; height: 150px; }
dd a img { width: 640px; height: 427px; }
dd {
margin-left: 0; background: rgba(0,0,0,0);
position: absolute; top: 0; bottom: 0;
width: 100%; height: 100%;
z-index: 2;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
visibility: hidden;
}
dd:target {
visibility: visible;
background: rgba(0,0,0,0.6);
-webkit-transition: .35s background linear;
transition: .35s background linear;
}
dd:target a {
-webkit-box-shadow: 0 0 8px 8px rgba(0,0,0,0.3);
box-shadow: 0 0 8px 8px rgba(0,0,0,0.3);
}
dd:target a img {
-webkit-animation: photopresent 3s forwards;
animation: photopresent 3s forwards;
}
body:target dl dd {
background: rgba(0,0,0,0);
-webkit-transition: 1.5s background ease-out;
transition: 1.5s background ease-out;
}
27 changes: 27 additions & 0 deletions light/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<link rel="stylesheet" href="css/style.css">
<dl id="gallery">
<dt>
<a href="#pic1">
<img src="1.jpg">
</a>
<dd id="pic1">
<a href="#core">
<img src="1.jpg">
</a>
<dt>
<a href="#pic2">
<img src="2.jpg" >
</a>
<dd id="pic2">
<a href="#core">
<img src="2.jpg">
</a>
<dt>
<a href="#pic3">
<img src="3.jpg">
</a>
<dd id="pic3">
<a href="#core">
<img src="3.jpg">
</a>
</dl>
Loading

0 comments on commit 67131bf

Please sign in to comment.