Skip to content

Instantly share code, notes, and snippets.

@vedrecide
Created October 17, 2022 12:42
Show Gist options
  • Save vedrecide/bb5963057a7041c72e690e05fd0c60ce to your computer and use it in GitHub Desktop.
Save vedrecide/bb5963057a7041c72e690e05fd0c60ce to your computer and use it in GitHub Desktop.
Photography page concept #2
<div class="hero-section">
<div class="about-text hover-target">about</div>
<div class="contact-text hover-target">contact</div>
<div class="section-center">
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-12 text-center">
<h1>Christian<br>Arete</h1>
</div>
<div class="col-12 text-center mb-2">
<div class="dancing"><span>photography</span></div>
</div>
<div class="col-12 text-center">
<p>
<span class="travel hover-target">travel</span>
<span class="wildlife hover-target">wildlife</span>
<span class="nature hover-target">nature</span>
</p>
</div>
</div>
</div>
</div>
</div>
<div class="about-section">
<div class="about-close hover-target"></div>
<div class="section-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-12 text-center">
<img src="https://assets.codepen.io/1462889/photographer.jpeg" alt="">
</div>
<div class="col-lg-8 text-center mt-3">
<p class="mb-1">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo.</p>
</div>
<div class="col-12 text-center">
<p class="mb-0"><span>Christian Arete</span></p>
</div>
</div>
</div>
</div>
</div>
<div class="contact-section">
<div class="contact-close hover-target"></div>
<div class="section-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-12 text-center">
<a href="#" class="hover-target">arete@photography.com</a>
</div>
<div class="col-12 text-center social mt-4">
<a href="#" class="hover-target">instagram</a>
<a href="#" class="hover-target">flickr</a>
<a href="#" class="hover-target">facebook</a>
</div>
</div>
</div>
</div>
</div>
<div class="travel-section">
<div class="travel-close hover-target"></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-12 text-center">
<h3>travel</h3>
</div>
<div class="col-12 mt-3 text-center">
<p><span>Canon PowerShot S95</span></p>
</div>
<div class="col-12 text-center">
<p>
focal length: 22.5mm<br>
aperture: ƒ/5.6<br>
exposure time: 1/1000<br>
ISO: 80
</p>
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
</div>
</div>
</div>
<div class="wildlife-section">
<div class="wildlife-close hover-target"></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-12 text-center">
<h3>wildlife</h3>
</div>
<div class="col-12 mt-3 text-center">
<p><span>Canon PowerShot S95</span></p>
</div>
<div class="col-12 text-center">
<p>
focal length: 22.5mm<br>
aperture: ƒ/5.6<br>
exposure time: 1/1000<br>
ISO: 80
</p>
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
</div>
</div>
</div>
<div class="nature-section">
<div class="nature-close hover-target"></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-12 text-center">
<h3>nature</h3>
</div>
<div class="col-12 mt-3 text-center">
<p><span>Canon PowerShot S95</span></p>
</div>
<div class="col-12 text-center">
<p>
focal length: 22.5mm<br>
aperture: ƒ/5.6<br>
exposure time: 1/1000<br>
ISO: 80
</p>
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
<div class="col-md-6 col-lg-4">
<img src="https://assets.codepen.io/1462889/photo-p.jpg" alt="">
</div>
</div>
</div>
</div>
<div class='cursor' id="cursor"></div>
<div class='cursor2' id="cursor2"></div>
<div class='cursor3' id="cursor3"></div>
<!-- Link to page
================================================== -->
<a href="https://front.codes/" class="logo hover-target" target="_blank">
<img src="https://assets.codepen.io/1462889/fcy.png" alt="">
</a>
/* Please ❤ this if you like it! */
(function($) { "use strict";
//Page cursors
document.getElementsByTagName("body")[0].addEventListener("mousemove", function(n) {
t.style.left = n.clientX + "px",
t.style.top = n.clientY + "px",
e.style.left = n.clientX + "px",
e.style.top = n.clientY + "px",
i.style.left = n.clientX + "px",
i.style.top = n.clientY + "px"
});
var t = document.getElementById("cursor"),
e = document.getElementById("cursor2"),
i = document.getElementById("cursor3");
function n(t) {
e.classList.add("hover"), i.classList.add("hover")
}
function s(t) {
e.classList.remove("hover"), i.classList.remove("hover")
}
s();
for (var r = document.querySelectorAll(".hover-target"), a = r.length - 1; a >= 0; a--) {
o(r[a])
}
function o(t) {
t.addEventListener("mouseover", n), t.addEventListener("mouseout", s)
}
//About page
$(".about-text").on('click', function () {
$("body").addClass("about-on");
});
$(".about-close").on('click', function () {
$("body").removeClass("about-on");
});
//Contact page
$(".contact-text").on('click', function () {
$("body").addClass("contact-on");
});
$(".contact-close").on('click', function () {
$("body").removeClass("contact-on");
});
//Travel portfolio page
$(".travel").on('click', function () {
$("body").addClass("travel-on");
});
$(".travel-close").on('click', function () {
$("body").removeClass("travel-on");
});
//Wildlife portfolio page
$(".wildlife").on('click', function () {
$("body").addClass("wildlife-on");
});
$(".wildlife-close").on('click', function () {
$("body").removeClass("wildlife-on");
});
//Nature portfolio page
$(".nature").on('click', function () {
$("body").addClass("nature-on");
});
$(".nature-close").on('click', function () {
$("body").removeClass("nature-on");
});
})(jQuery);
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
/* Please ❤ this if you like it! */
/* ========================================= *
BEST VIEWED FULLSCREEN
https://codepen.io/ig_design/full/MWKyXJv
* ========================================= */
@import url('https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i');
body{
font-family: 'Poppins', sans-serif;
font-weight: 300;
font-size: 15px;
line-height: 1.6;
color: #fff;
background-color: #1f2029;
overflow: hidden;
height: 100vh;
-webkit-transition: all 300ms linear;
transition: all 300ms linear;
perspective: 800px;
}
a {
cursor: pointer;
}
a:hover {
text-decoration: none;
}
::selection {
color: #c4c3ca;
background-color: #000;
}
::-moz-selection {
color: #c4c3ca;
background-color: #000;
}
/* #Cursor
================================================== */
.cursor,
.cursor2,
.cursor3{
position: fixed;
border-radius: 50%;
transform: translateX(-50%) translateY(-50%);
pointer-events: none;
left: -100px;
top: 50%;
mix-blend-mode: difference;
-webkit-transition: all 300ms linear;
transition: all 300ms linear;
}
.cursor{
background-color: #fff;
height: 0;
width: 0;
z-index: 99999;
}
.cursor2,.cursor3{
height: 36px;
width: 36px;
z-index:99998;
-webkit-transition:all 0.3s ease-out;
transition:all 0.3s ease-out
}
.cursor2.hover,
.cursor3.hover{
-webkit-transform:scale(2) translateX(-25%) translateY(-25%);
transform:scale(2) translateX(-25%) translateY(-25%);
border:none
}
.cursor2{
border: 2px solid #fff;
}
.cursor2.hover{
background: rgba(255,255,255,1);
border-color: transparent;
}
@media screen and (max-width: 1200px){
.cursor,.cursor2,.cursor3{
display: none
}
}
/* #Primary style
================================================== */
.hero-section {
position: relative;
width: 100%;
display: block;
overflow: hidden;
height: 100vh;
background-image: url('https://assets.codepen.io/1462889/photo.jpeg');
background-size: cover;
background-position: center;
transform: scale(1) rotateX(0);
box-shadow: 0 0 40px rgba(0,0,0,0.2);
-webkit-transition: all 300ms linear;
transition: all 300ms linear;
-webkit-transition-delay: 400ms;
transition-delay: 400ms;
transform-origin: center top;
}
.hero-section h1{
color: #fff;
font-size: 8vw;
line-height: 1;
font-weight: 900;
}
.hero-section .dancing{
letter-spacing: 1px;
color: #ffeba7;
font-size: 25px;
line-height: 1;
font-weight: 700;
letter-spacing: 3px;
text-transform: uppercase;
transform: translateY(-175px) rotate(-45deg);
z-index: 2;
}
.hero-section .dancing span{
padding: 8px 15px;
padding-right: 10px;
display: inline-block;
border-radius: 5px;
background-color: #102770;
}
@media screen and (max-width: 580px){
.hero-section .dancing{
font-size: 18px;
}
}
.hero-section p{
font-size: 20px;
line-height: 1;
font-weight: 700;
color: #ffeba7;
}
.hero-section p span{
margin-left: 15px;
margin-right: 15px;
position: relative;
display: inline-block;
cursor: pointer;
}
body.about-on .hero-section {
transform: scale(0.75);
-webkit-transition-delay: 0ms;
transition-delay: 0ms;
}
body.contact-on .hero-section {
transform: scale(0.75);
-webkit-transition-delay: 0ms;
transition-delay: 0ms;
}
body.travel-on .hero-section {
transform: rotateX(-10deg);
-webkit-transition-delay: 0ms;
transition-delay: 0ms;
}
body.wildlife-on .hero-section {
transform: rotateX(-10deg);
-webkit-transition-delay: 0ms;
transition-delay: 0ms;
}
body.nature-on .hero-section {
transform: rotateX(-10deg);
-webkit-transition-delay: 0ms;
transition-delay: 0ms;
}
.about-text {
position: absolute;
font-size: 30px;
line-height: 1;
opacity: 0.5;
font-weight: 700;
color: #ffeba7;
letter-spacing: 2px;
top: 50%;
left: 20px;
cursor: pointer;
z-index: 2;
-webkit-writing-mode: vertical-lr;
writing-mode: vertical-lr;
transform: translateY(-50%);
-webkit-transition: all 200ms linear;
transition: all 200ms linear;
}
.about-text:hover {
opacity: 1;
}
.about-section {
position: fixed;
top: 0;
left: 0;
width: 100%;
display: block;
overflow: hidden;
height: 100vh;
background-color: #102770;
transform: translateX(-100%);
-webkit-transition: all 300ms linear;
transition: all 300ms linear;
z-index: 10;
}
body.about-on .about-section {
transform: translateX(0);
-webkit-transition-delay: 400ms;
transition-delay: 400ms;
}
.about-close {
position: absolute;
top: 20px;
right: 20px;
width: 30px;
display: block;
overflow: hidden;
height: 30px;
-webkit-transition: all 200ms linear;
transition: all 200ms linear;
background-repeat: no-repeat;
background-position: center;
background-size: 36px 36px;
background-image: url('http://www.ivang-design.com/svg-load/portfolio/close.svg');
cursor: pointer;
z-index: 11;
}
.about-close:hover {
transform: rotate(90deg);
}
.section-center {
position: absolute;
width: 100%;
left: 0;
top: 50%;
transform: translateY(-50%);
z-index: 1;
}
.about-section img {
width: 240px;
height: 240px;
border-radius: 50%;
display: block;
margin: 0 auto;
box-shadow: 0 6px 25px rgba(255,235,167,.35);
}
.about-section p {
letter-spacing: 1px;
color: #fff;
font-size: 16px;
font-weight: 500;
}
.about-section p span {
letter-spacing: 1px;
color: #ffeba7;
font-size: 20px;
font-weight: 700;
}
.contact-text {
position: absolute;
font-size: 30px;
line-height: 1;
opacity: 0.5;
font-weight: 700;
color: #ffeba7;
letter-spacing: 2px;
top: 50%;
right: 20px;
cursor: pointer;
z-index: 2;
-webkit-writing-mode: vertical-lr;
writing-mode: vertical-lr;
transform: translateY(-50%) rotate(180deg);
-webkit-transition: all 200ms linear;
transition: all 200ms linear;
}
.contact-text:hover {
opacity: 1;
}
.contact-section {
position: fixed;
top: 0;
left: 0;
width: 100%;
display: block;
overflow: hidden;
height: 100vh;
background-color: #102770;
transform: translateX(100%);
-webkit-transition: all 300ms linear;
transition: all 300ms linear;
z-index: 10;
}
body.contact-on .contact-section {
transform: translateX(0);
-webkit-transition-delay: 400ms;
transition-delay: 400ms;
}
.contact-close {
position: absolute;
top: 20px;
right: 20px;
width: 30px;
display: block;
overflow: hidden;
height: 30px;
-webkit-transition: all 200ms linear;
transition: all 200ms linear;
background-repeat: no-repeat;
background-position: center;
background-size: 36px 36px;
background-image: url('http://www.ivang-design.com/svg-load/portfolio/close.svg');
cursor: pointer;
z-index: 11;
}
.contact-close:hover {
transform: rotate(90deg);
}
.contact-section a{
margin: 0 auto;
font-size: 32px;
font-weight: 900;
letter-spacing: 1px;
color: #fff;
display: inline-block;
}
.contact-section .social a{
margin-left: 8px;
margin-right: 8px;
font-size: 15px;
font-weight: 700;
letter-spacing: 1px;
color: #ffeba7;
}
@media screen and (max-width: 580px){
.contact-section a{
font-size: 17px;
}
.contact-section .social a{
margin-left: 3px;
margin-right: 3px;
font-size: 13px;
letter-spacing: 0;
}
}
.travel-section,
.wildlife-section,
.nature-section {
position: fixed;
top: 100%;
left: 0;
padding: 100px 0;
width: 100%;
height: 100vh;
display: block;
overflow-x: hidden;
overflow-y: auto;
background-color: #102770;
-webkit-transition: all 300ms linear;
transition: all 300ms linear;
z-index: 10;
}
.travel-close,
.wildlife-close,
.nature-close {
position: absolute;
top: 20px;
right: 20px;
width: 30px;
display: block;
overflow: hidden;
height: 30px;
-webkit-transition: all 200ms linear;
transition: all 200ms linear;
background-repeat: no-repeat;
background-position: center;
background-size: 36px 36px;
background-image: url('http://www.ivang-design.com/svg-load/portfolio/close.svg');
cursor: pointer;
z-index: 11;
}
.travel-close:hover,
.wildlife-close:hover,
.nature-close:hover {
transform: rotate(90deg);
}
body.travel-on .travel-section {
top: 0;
-webkit-transition-delay: 400ms;
transition-delay: 400ms;
}
body.wildlife-on .wildlife-section {
top: 0;
-webkit-transition-delay: 400ms;
transition-delay: 400ms;
}
body.nature-on .nature-section {
top: 0;
-webkit-transition-delay: 400ms;
transition-delay: 400ms;
}
.travel-section img,
.wildlife-section img,
.nature-section img {
margin-top: 30px;
width: 100%;
height: auto;
display: block;
border-radius: 4px;
box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
.travel-section h3,
.wildlife-section h3,
.nature-section h3 {
font-size: 7vw;
line-height: 1;
font-weight: 700;
letter-spacing: 1px;
color: #fff;
}
.travel-section p,
.wildlife-section p,
.nature-section p {
font-size: 14px;
line-height: 1.7;
letter-spacing: 1px;
font-weight: 500;
}
.travel-section p span,
.wildlife-section p span,
.nature-section p span {
font-size: 20px;
line-height: 1.3;
font-weight: 700;
color: #ffeba7;
}
/* #Link to page
================================================== */
.logo {
position: fixed;
bottom: 30px;
right: 30px;
display: block;
z-index: 200000;
transition: all 250ms linear;
}
.logo img {
height: 26px;
width: auto;
display: block;
mix-blend-mode: difference;
}
@media (max-width: 1200px) {
.hero-section .dancing{
font-size: 15px;
transform: translateY(-80px) rotate(-45deg);
}
}
@media (max-width: 967px) {
.hero-section h1{
font-size: 11vw;
}
.hero-section p{
font-size: 18px;
}
.hero-section p span{
margin-left: 10px;
margin-right: 10px;
}
.travel-section h3,
.wildlife-section h3,
.nature-section h3 {
font-size: 13vw;
}
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment