Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Art/anja-ui-pullCurtain/PullCurtain.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions Art/anja-ui-pullCurtain/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pull Curtain</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>
<div class="wrapper">
<div class="screen-container">
<div class="pull pull-left">
<div class="screen screen-left">
<div class="bar"></div>
</div>
</div>
</div>
<div class="screen-container">
<div class="pull pull-right">
<div class="screen screen-right">
<div class="bar"></div>
</div>
</div>
</div>
</div>
</body>

</html>
Binary file added Art/anja-ui-pullCurtain/lifeOnTheOcean.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
94 changes: 94 additions & 0 deletions Art/anja-ui-pullCurtain/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
body {
background: lightblue;
}

.wrapper {
display: inline-block;
background-image: url("lifeOnTheOcean.jpg");
background-size: cover;
background-repeat: no-repeat;
position: absolute;
top: 10%;
left: 10%;
margin-top: 120px;
margin-left: 180px;
}

.screen-container {
display: inline-block;
vertical-align: top;
}

.wrapper:hover .pull-left {
position: absolute;
top: 0;
left: 0;
animation: moveBoxLeft 2s linear forwards;
}

.wrapper:hover .pull-right {
position: absolute;
top: 0;
animation: moveBoxRight 2s linear forwards;
}

.screen-container,
.screen {
width: 480px;
height: 540px;
}

.pull {
position: relative;
}

.screen {
position: absolute;
top: 0;
left: 0;
z-index: 2;
background: blueviolet;
overflow: hidden;
}

.bar {
width: 100px;
height: 10px;
background: white;
}

.screen-left .bar {
position: absolute;
right: -50px;
top: 50%;
margin-top: -50px;
}

.screen-right .bar {
position: absolute;
left: -50px;
top: 50%;
margin-top: -50px;
}

@keyframes moveBoxLeft {
0% {
scale: 1.0 1.0;
}

100% {
scale: 0.1 1.0;
}
}

@keyframes moveBoxRight {
0% {
scale: 1.0 1.0;
translate: 0px;
}

100% {
scale: 0.1 1.0;
translate: 432px;
}
}
8 changes: 8 additions & 0 deletions public/cards.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,13 @@
"pageLink": "./Art/mattcsmith-triangle/index.html",
"imageLink": "./Art/mattcsmith-triangle/icon.png",
"projectPath": "Art/mattcsmith-triangle"
},
{
"author": "anja-ui",
"artName": "pullCurtain",
"githubLink": "https://github.com/anja-ui",
"pageLink": "./Art/anja-ui-pullCurtain/index.html",
"imageLink": "./Art/anja-ui-pullCurtain/PullCurtain.gif",
"projectPath": "Art/anja-ui-pullCurtain"
}
]