-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tanyagarg24
committed
Jan 29, 2020
0 parents
commit 67131bf
Showing
17 changed files
with
6,280 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.