diff --git a/100_projects/16-creative-image-gallery/images/Candy.png b/100_projects/16-creative-image-gallery/images/Candy.png new file mode 100644 index 0000000..b701ff2 Binary files /dev/null and b/100_projects/16-creative-image-gallery/images/Candy.png differ diff --git a/100_projects/16-creative-image-gallery/images/Cherry.png b/100_projects/16-creative-image-gallery/images/Cherry.png new file mode 100644 index 0000000..54ec8cd Binary files /dev/null and b/100_projects/16-creative-image-gallery/images/Cherry.png differ diff --git a/100_projects/16-creative-image-gallery/images/Melon.png b/100_projects/16-creative-image-gallery/images/Melon.png new file mode 100644 index 0000000..26bac87 Binary files /dev/null and b/100_projects/16-creative-image-gallery/images/Melon.png differ diff --git a/100_projects/16-creative-image-gallery/images/background.png b/100_projects/16-creative-image-gallery/images/background.png new file mode 100644 index 0000000..cf64faa Binary files /dev/null and b/100_projects/16-creative-image-gallery/images/background.png differ diff --git a/100_projects/16-creative-image-gallery/index.html b/100_projects/16-creative-image-gallery/index.html new file mode 100644 index 0000000..8e9761b --- /dev/null +++ b/100_projects/16-creative-image-gallery/index.html @@ -0,0 +1,18 @@ + + + + + + + Document + + + +
+

Candy.

+

Cherry.

+

Melon.

+
+
+ + \ No newline at end of file diff --git a/100_projects/16-creative-image-gallery/style.css b/100_projects/16-creative-image-gallery/style.css new file mode 100644 index 0000000..c43a280 --- /dev/null +++ b/100_projects/16-creative-image-gallery/style.css @@ -0,0 +1,56 @@ +*{ + padding: 0; + margin: 0; + box-sizing: border-box; +} +.hero{ + width: 100%; + height: 100vh; + background: #f3f7fe; + padding: 10px 3%; + position: relative; + display: flex; + align-items: center; + justify-content: space-around; +} +.hero h1{ + font-size: 75px; + position: relative; + z-index: 2; + -webkit-text-fill-color: transparent; + -moz-text-fill-color: transparent; + -webkit-text-stroke: 2px #111; + -moz-text-stroke: 2px #111; + cursor: pointer; + transition: .3s ; +} +@media(max-width:767px){ + .hero h1{ + font-size: 30px; + } +} +.hero h1:hover{ + -webkit-text-fill-color: #111; + -moz-text-fill-color: #111; + transform: translateY(-10px); +} +.img-box{ + position: absolute; + top: 0; + right: 0; + height: 100%; + width: 65%; + background: url(images/background.png); + background-size: cover; + background-position: center; + transition:background-image 1s ; +} +.hero h1:nth-child(1):hover ~ .img-box{ + background-image: url(images/Candy.png); +} +.hero h1:nth-child(2):hover ~ .img-box{ + background-image: url(images/Cherry.png); +} +.hero h1:nth-child(3):hover ~ .img-box{ + background-image: url(images/Melon.png); +} \ No newline at end of file