Skip to content

Instantly share code, notes, and snippets.

@tradesouthwest
Created June 17, 2017 17:40
Show Gist options
  • Save tradesouthwest/9018ab30516b49748630dd653c275d6e to your computer and use it in GitHub Desktop.
Save tradesouthwest/9018ab30516b49748630dd653c275d6e to your computer and use it in GitHub Desktop.
wordcampEU spotlights pure css
<!DOCTYPE html>
<html lang="en-US" class="no-js no-svg">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>WordCamp Europe 2017 &#8211; June 15-17, Paris, France | #WCEU</title>
<style>
.site-header {
height:890px;
position: relative;
background-repeat: no-repeat;
background-position: 50% 0;
background-size: fixed;
background-image: url('https://2017.europe.wordcamp.org/files/2017/01/header-wceu17-hero-mobile.jpg');
transition: all .15s ease;
}
@media (min-width:48em) {
.site-header {
background-image: url('https://2017.europe.wordcamp.org/files/2017/01/header-wceu17-hero-desktop.jpg');
background-position: 50% 50%;
background-size: cover;
}
}
.site-header:before {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: rgba(45,40,45,.6);
content: "";
}
.site-header>* {
position: relative;
z-index: 200;
}
.home .site-header .site-branding:after,.home .site-header .site-branding:before {
position: absolute;
z-index: -1;
/* here is the only change made to orig - orig was -10vh */
bottom: -91vh;
left: 60%;
display: block;
width: 0;
height: 0;
margin-left: -40vh;
border-top: 100vh solid #fff;
border-left: 40vh solid transparent;
border-right: 40vh solid transparent;
content: "";
opacity: .1;
transform-origin: 100% 100%;
-webkit-transform: translateZ(0);
-webkit-backface-visibility: hidden;
-webkit-perspective: 1000px;
}
.home .site-header .site-branding:before {
transform: skewX(50deg);
animation: a 5s infinite 5s;
}
.home .site-header .site-branding:after {
transform: skewX(-50deg);
animation: b 5s infinite 5s;
}
@keyframes a {
0% {
transform: skewX(50deg);
}
5% {
transform: skewX(50deg);
}
20% {
transform: skewX(-60deg);
}
50% {
transform: skewX(-50deg);
opacity: .1;
}
80% {
opacity: .2;
}
to {
transform: skewX(50deg);
opacity: .1;
}
}
@keyframes b {
0% {
transform: skewX(-50deg);
opacity: .1;
}
5% {
transform: skewX(-50deg);
}
10% {
opacity: .05;
}
30% {
opacity: .2;
}
40% {
opacity: .1;
}
50% {
transform: skewX(60deg);
opacity: .1;
}
60% {
opacity: .2;
}
80% {
opacity: .1;
}
to {
transform: skewX(-50deg);
}
}
body{overflow-x:hidden}
</style>
</head>
<body class="home">
<header id="masthead" class="site-header" role="banner">
<div class="custom-header">
<div class="custom-header-media">
</div>
<div class="site-branding">
<p class="site-title">
<a href="https://2017.europe.wordcamp.org/" rel="home">
WordCamp Europe 2017 </a>
</p>
<p class="site-description">
June 15-17, Paris, France | #WCEU </p>
</div>
</div>
</header>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment