Skip to content

Commit

Permalink
feat: stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
AskeLange committed Jan 27, 2025
1 parent 76163e9 commit 9d7b050
Show file tree
Hide file tree
Showing 44 changed files with 144 additions and 66 deletions.
Binary file modified .DS_Store
Binary file not shown.
File renamed without changes.
62 changes: 62 additions & 0 deletions 2-1-css-filters/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
.target {
position: relative;
width: 200px;
height: 200px;
transition: 1s filter linear, 1s -webkit-filter linear;
}

.target > div {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;

background-color: var(--color-beige);
background-image: url(https://images.unsplash.com/photo-1716125583397-e7cc7469c3f2?q=80&w=3387&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
background-size: cover;
background-position: center;
}

.target > span {
position: absolute;
top: -64px;
left: 50%;
transform: translateX(-50%);
width: max-content;
font-size: 12px;
text-align: center;
}

.target > div {
transition: 1s filter linear, 1s -webkit-filter linear;
}

#target-2 > div {
transition: 0.5s filter ease-in-out;
filter: hue-rotate(0deg);
}
#target-2:hover > div {
filter: hue-rotate(90deg);
}
#target-3 > div {
transition: 0.5s filter ease-in-out;
filter: contrast(100%);
}
#target-3:hover > div {
filter: contrast(175%);
}
#target-4 > div {
transition: 0.5s filter ease-in-out;
filter: brightness(100%);
}
#target-4:hover > div {
filter: brightness(75%);
}
#target-5 > div {
transition: 0.5s filter ease-in-out;
filter: blur(0);
}
#target-5:hover > div {
filter: blur(3px);
}
62 changes: 0 additions & 62 deletions 3-1-css-filters/styles.css

This file was deleted.

17 changes: 17 additions & 0 deletions 3-1-keyframes-hover/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>3.1: CSS Filters</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="../overall.css" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header>
<div></div>
<a href="../4-1-mouse/index.html"></a>
</header>

<div><!-- Content here --></div>
</body>
</html>
File renamed without changes.
17 changes: 17 additions & 0 deletions 4-1-svg-masks/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>3.1: CSS Filters</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="../overall.css" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header>
<div></div>
<a href="../4-1-mouse/index.html"></a>
</header>

<div><!-- Content here --></div>
</body>
</html>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions 4-1-mouse/scripts.js → 7-1-cssvariables-mouse/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties
*/
window.addEventListener("mousemove", function ({ clientX, clientY }) {
document.body.style.setProperty("--x", clientX + "px");
document.body.style.setProperty("--y", clientY + "px");
window.addEventListener("mousemove", function (event) {
document.body.style.setProperty("--x", event.clientX + "px");
document.body.style.setProperty("--y", event.clientY + "px");
});
File renamed without changes.
17 changes: 17 additions & 0 deletions 8-1-split-text/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>3.1: CSS Filters</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="../overall.css" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header>
<div></div>
<a href="../4-1-mouse/index.html"></a>
</header>

<div><!-- Content here --></div>
</body>
</html>
Empty file added 8-1-split-text/styles.css
Empty file.
17 changes: 17 additions & 0 deletions 9-1-css-perspective/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>3.1: CSS Filters</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="../overall.css" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header>
<div></div>
<a href="../4-1-mouse/index.html"></a>
</header>

<div><!-- Content here --></div>
</body>
</html>
Empty file added 9-1-css-perspective/styles.css
Empty file.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# hack-your-future-workshop
# Hack Your Future
10 changes: 10 additions & 0 deletions plan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- Intro (Aske)
- Clippath (Aske)
- Css Filters (Tobi) \*TOBI
- Keyframes + Hover things (+ things from iuno workshop) (Tobi) \*WØLK+TOBI
- Svg Masks (Aske) \*ASKE
- Svg Filters (Aske) \*ASKE
- Svg Stroke (Tobi) \*TOBI
- Simple JS css-variables + follow (Tobi) \*TOBI
- Split Text Animation (Tobi) \*TOBI+WØLK
- Css Perspective & 3d transforms + skew, if you're craazy (Aske) \*ASKE
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added x-4-3-loop-live/styles.css
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9d7b050

Please sign in to comment.