HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<section class="section__slider">
<div class="container__center">
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="swiper-slide__block">
<div class="swiper-slide__block__img" data-swiper-parallax-y="70%">
<img src="https://i.postimg.cc/Wzh0C7Db/5ec9aee050c81v3.jpg" alt="">
</a>
</div>
<div class="swiper-slide__block__text">
<h2 data-swiper-parallax-x="-60%" class="main__title">Vanessa Karsenti
<br>
<span>.</span>
</h2>
<h3 data-swiper-parallax-x="-50%" class="main__subtitle">
<span>Dirigeante VK GESTION </span>
</h3>
<p data-swiper-parallax-x="-40%" class="paragraphe">Diplômée en études supérieures de comptabilité, après 15 ans d'expertise au sein de nombreuses societés, j'ai décidé de proposer mes services en ouvrant mon cabinet de gestion administrative. Satisfaire mes clients en leur apportant une prestation rigoureuse, rapide et conforme est ma priorité.</p>
<span data-swiper-parallax-y="60%" class="number">1</span>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide__block">
<div class="swiper-slide__block__img" data-swiper-parallax-y="70%">
<img src="https://i.postimg.cc/zDPPKK07/bureau-vaness.jpg" alt="">
</a>
</div>
<div class="swiper-slide__block__text">
<h2 data-swiper-parallax-x="-60%" class="main__title">A mon bureau
<br>
<span>.</span>
</h2>
<h3 data-swiper-parallax-x="-50%" class="main__subtitle">
<span></span>
</h3>
<p data-swiper-parallax-x="-40%" class="paragraphe">Mon lieu de travail personnel où vous pouvez me joindre à tout instant pour communiquer sur vos tâches.</p>
<span data-swiper-parallax-y="60%" class="number">2</span>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide__block">
<div class="swiper-slide__block__img" data-swiper-parallax-y="70%">
<img src="https://i.postimg.cc/h4JNC2J6/vanessreunion.jpg" alt="">
</a>
</div>
<div class="swiper-slide__block__text">
<h2 data-swiper-parallax-x="-60%" class="main__title">En reunion,
<br>chez un client
<span>.</span>
</h2>
<h3 data-swiper-parallax-x="-50%" class="main__subtitle">
<span></span>
</h3>
<p data-swiper-parallax-x="-40%" class="paragraphe">Lors d'une réunion administrative et comptable chez un de mes clients.</p>
<span data-swiper-parallax-y="60%" class="number">3</span>
</div>
</div>
</div>
</div>
<div class="swiper-button-next">
<i class="fa fa-long-arrow-right" aria-hidden="true"></i>
</div>
<div class="swiper-button-prev">
<i class="fa fa-long-arrow-left" aria-hidden="true"></i>
</div>
</div>
</div>
</section>
@charset "UTF-8";
.centerx,.header__basic--black .header__img,.section__crazy__color .wrapper__color .wrapper__panel .color .color__el h3,.section__handsketch__color .wrapper__audrio .color .color__el h3,.section__handsketch__color .wrapper__audrio img,.section__woy__color .wrapper__audrio .color .color__el h3,.section__woy__color .wrapper__audrio img {
position: absolute;
left: 50%;
-webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%);
transform: translateX(-50%);
}
.centery,.header__basic--studio .header__img,.section__404 .title__block,.section__jobs .jobs__ul .jobs__ul__li .jobs__ul__li__a i,.section__site .site__template .site__template__bar .template__button {
position: absolute;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.centerxy,.flux__el--twitter p,.job__title .close--profil i,.job__title .title__block,.loading .loading__elements #display,.loading .loading__elements #progress,.navigation__project .navigation__project__block .content__text,.navigation__project .navigation__project__block:nth-child(2) .link,.other__team .profil__team .profil__team__li a img,.section__404 .overlay__404,.section__about .background__about .play i,.section__customer .customers .customers__li img,.section__projets .awards .awards__li a img,.section__projets .swiper-projets .swiper-slide .swiper-slide-block-content .text__content,.section__team .swiper-slide .slide__img .overlay,nav .center__navigation {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translateY(-50%) translateX(-50%);
-ms-transform: translateY(-50%) translateX(-50%);
transform: translateY(-50%) translateX(-50%);
}
html {
font-family: sans-serif;
line-height: 1.15;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
overflow: hidden;
}
a {
text-decoration: none;
color: #21272b;
cursor: pointer;
}
article,aside,footer,header,nav,section {
display: block;
}
h1 {
font-size: 2em;
margin: .67em 0;
}
ul {
padding: 0;
margin: 0;
list-style: none;
}
figcaption,figure,main {
display: block;
}
figure {
margin: 1em 40px;
}
hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}
pre {
font-family: monospace,monospace;
font-size: 1em;
}
a {
background-color: transparent;
-webkit-text-decoration-skip: objects;
}
a:active,a:hover {
outline-width: 0;
}
abbr[title] {
border-bottom: none;
text-decoration: underline;
text-decoration: underline dotted;
}
b,strong {
font-weight: inherit;
}
b,strong {
font-weight: bolder;
}
code,kbd,samp {
font-family: monospace,monospace;
font-size: 1em;
}
dfn {
font-style: italic;
}
mark {
background-color: #ff0;
color: #000;
}
small {
font-size: 80%;
}
sub,sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -.25em;
}
sup {
top: -.5em;
}
audio,video {
display: inline-block;
}
audio:not([controls]) {
display: none;
height: 0;
}
img {
border-style: none;
}
svg:not(:root) {
overflow: hidden;
}
button,input,optgroup,select,textarea {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button,input {
overflow: visible;
}
button,select {
text-transform: none;
}
[type=reset],[type=submit],button,html [type=button] {
-webkit-appearance: button;
}
[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner {
border-style: none;
padding: 0;
}
[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring {
outline: 1px dotted ButtonText;
}
fieldset {
border: 1px solid silver;
margin: 0 2px;
padding: .35em .625em .75em;
}
legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
progress {
display: inline-block;
vertical-align: baseline;
}
textarea {
overflow: auto;
}
[type=checkbox],[type=radio] {
box-sizing: border-box;
padding: 0;
}
[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button {
height: auto;
}
[type=search] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
details,menu {
display: block;
}
summary {
display: list-item;
}
canvas {
display: inline-block;
}
template {
display: none;
}
[hidden] {
display: none;
}
body {
background-color: transparent;
padding: 0;
transition: padding .3s ease-in-out;
}
.main__title {
color: #f2f3f3;
text-transform: uppercase;
font-family: Montserrat,sans-serif;
font-weight: 900;
font-size: 2.6em;
letter-spacing: 1px;
margin: 0;
}
.main__title span {
color: #ff2d71;
}
.main__subtitle {
margin: 2px 0;
font-weight: 700;
font-family: Montserrat,sans-serif;
font-size: 0.9em;
color: #f2f3f3;
}
@media (min-width:768px) {
.main__subtitle {
font-size: 1.1em;
}
}
.main__subtitle span {
font-family: "Patua One",cursive;
color: #00a8af;
font-style: italic;
}
.link {
display: inline-block;
width: auto;
position: relative;
text-decoration: none;
color: #21272b;
font-family: Montserrat,sans-serif;
font-size: .7em;
font-weight: 400;
letter-spacing: 1px;
text-transform: uppercase;
color: #00a8af!important;
transition: all .3s ease-in-out;
}
.link:hover {
letter-spacing: 2px;
}
.link__apply {
display: block;
width: 150px;
padding: 16px 12px;
background-color: #00a8af;
border: 2px solid #00a8af;
border-radius: 1px;
color: #f2f3f3;
text-decoration: none;
text-transform: uppercase;
text-align: center;
font-weight: 700;
font-family: Montserrat,sans-serif;
font-size: .813em;
letter-spacing: 1px;
transition: all .3s ease-in-out;
}
.link__apply:hover {
background-color: transparent;
letter-spacing: 3px;
border-radius: 1px;
}
.link__apply:active {
background-color: transparent;
letter-spacing: 3px;
border-radius: 1px;
}
.link__apply:focus {
background-color: transparent;
letter-spacing: 3px;
border-radius: 1px;
}
.swiper-container {
width: 100%;
height: auto;
margin-left: auto;
margin-right: auto;
position: relative;
cursor: -webkit-grab;
cursor: grab;
}
@media (min-width:1200px) {
.swiper-container {
height: 550px;
}
}
.swiper-button-next,.swiper-button-prev {
width: 50px;
height: 50px;
background-image: none;
background-color: #e4e4e4;
z-index: 2;
cursor: pointer;
}
.swiper-button-next i,.swiper-button-prev i {
position: relative;
left: 50%;
top: 50%;
color: #21272b;
-webkit-transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
transition: all .3s ease-in-out;
}
@keyframes arrowRight {
0% {
-webkit-transform: translate(0,-50%);
transform: translate(0,-50%);
}
50% {
-webkit-transform: translate(-10px,-50%);
transform: translate(-10px,-50%);
}
100% {
-webkit-transform: translate(0,-50%);
transform: translate(0,-50%);
}
}
.swiper-button-next:hover i,.swiper-button-prev:hover i {
-webkit-animation: arrowRight 1s infinite;
animation: arrowRight 1s infinite;
}
.swiper-button-next {
position: absolute;
top: 0;
right: 0;
margin-top: 0;
}
@media (min-width:1200px) {
.swiper-button-next {
right: 300px;
background-color: #f2f3f3;
}
}
.swiper-button-prev {
position: absolute;
top: auto;
bottom: 0;
left: 0;
}
@media (min-width:1200px) {
.swiper-button-prev {
bottom: 74px;
background-color: #f2f3f3;
}
}
.swiper-slide {
text-align: center;
font-size: 15px;
width: 100%;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.swiper-slide__block {
width: 100%;
margin: 0 auto;
height: 100%;
text-align: left;
}
.swiper-slide__block .swiper-slide__block__img {
width: 100%;
height: auto;
overflow: hidden;
}
.swiper-slide__block .swiper-slide__block__img a {
display: block;
width: 100%;
height: 100%;
}
@media (min-width:1200px) {
.swiper-slide__block .swiper-slide__block__img {
width: 65%;
max-height: 476px;
height: 476px;
max-width: 735px;
overflow: hidden;
position: relative;
}
}
.swiper-slide__block .swiper-slide__block__img img {
width: 100%;
height: auto;
transition: all .3s ease-in-out;
}
@media (min-width:1200px) {
.swiper-slide__block .swiper-slide__block__img img {
position: absolute;
top: 0;
left: 0;
width: auto;
height: 100%;
}
}
.swiper-slide__block .swiper-slide__block__img:hover img {
-webkit-transform: scale(1.1);
-ms-transform: scale(1.1);
transform: scale(1.1);
-webkit-filter: brightness(.5);
filter: brightness(.5);
}
.swiper-slide__block .swiper-slide__block__text {
width: 85%;
height: auto;
margin: 0 auto;
margin-top: 50px;
position: relative;
}
@media (min-width:768px) {
.swiper-slide__block .swiper-slide__block__text {
margin-top: 100px;
}
}
@media (min-width:1200px) {
.swiper-slide__block .swiper-slide__block__text {
width: 40%;
height: 100%;
max-height: 476px;
max-width: 400px;
position: absolute;
background-color: transparent;
top: 0;
right: 0;
margin-top: 0;
padding: 0;
}
.swiper-slide__block .swiper-slide__block__text:before {
content: "";
display: block;
width: 200px;
max-width: 408px;
height: 100%;
background-color: #e4e4e4;
position: absolute;
left: -100px;
}
}
.swiper-slide__block .main__title {
color: #f2f3f3;
text-transform: uppercase;
font-family: Montserrat,sans-serif;
font-weight: 900;
font-size: 2.6em;
letter-spacing: 1px;
margin: 0;
text-shadow: 7px 7px 16px #d2d2d2;
}
.swiper-slide__block .main__title span {
color: #ff2d71;
}
@media (min-width:768px) {
.swiper-slide__block .main__title {
font-size: 3em;
}
}
@media (min-width:1200px) {
.swiper-slide__block .main__title {
margin-top: 100px;
}
}
.swiper-slide__block .main__subtitle {
margin: 2px 0;
font-weight: 700;
font-family: Montserrat,sans-serif;
font-size: 0.9em;
color: #f2f3f3;
}
@media (min-width:768px) {
.swiper-slide__block .main__subtitle {
font-size: 1.3em;
}
}
.swiper-slide__block .main__subtitle span {
font-family: "Patua One",cursive;
font-style: normal;
color: #00a8af;
letter-spacing: 1px;
}
.swiper-slide__block .main__subtitle,.swiper-slide__block .main__title,.swiper-slide__block .paragraphe {
color: #21272b;
z-index: 2;
position: relative;
}
.swiper-slide__block .paragraphe {
max-width: 413px;
text-shadow: 7px 7px 16px #d2d2d2;
margin-top: 24px;
}
.swiper-slide__block .number {
font-family: Montserrat,sans-serif;
font-size: 12em;
font-weight: 900;
width: 100%;
display: block;
color: rgba(16,47,65,.04);
position: relative;
bottom: 100px;
z-index: 1;
text-align: right;
margin: 0;
line-height: 120px;
}
@media (min-width:1200px) {
.swiper-slide__block .number {
margin-top: 100px;
font-size: 15em;
}
}
.loading {
width: 100%;
height: 100vh;
background-color: #f8f8f8;
position: fixed;
left: 0;
top: 0;
z-index: 9999;
-webkit-transform-origin: left top;
-ms-transform-origin: left top;
transform-origin: left top;
overflow: hidden;
}
.loading .loading__elements {
width: 100%;
height: 50%;
}
.loading .loading__elements #progress {
display: block;
width: 300px;
height: 30px;
z-index: 1;
font-family: Montserrat,sans-serif;
background-color: #000;
transition: all .3s ease-in-out;
}
.loading .loading__elements #progress::-webkit-progress-bar {
display: block;
width: 100%;
transition: all .3s;
}
.loading .loading__elements #progress::-webkit-progress-value {
background-color: rgba(131,201,207,.8);
background: -webkit-linear-gradient(#00a8af,#83c9cf);
}
.loading .loading__elements progress[value]::-webkit-progress-bar {
background-color: #f8f8f8;
border-radius: 2px;
box-shadow: none;
}
.loading .loading__elements #display {
display: block;
font-size: 5em;
z-index: 2;
font-family: Montserrat,sans-serif;
font-weight: 900;
text-align: center;
margin-bottom: 50px;
color: #21272b;
}
.section__slider {
width: 100%;
height: auto;
background-color: #f2f3f3;
}
@media (min-width:1200px) {
.section__slider {
padding: 150px 0;
}
}
.section__slider .container__center {
width: 100%;
position: relative;
margin-left: auto;
margin-right: auto;
}
@media (min-width:992px) {
.section__slider .container__center {
max-width: 1200px;
width: 85%;
}
.section__slider .container__center:after {
content: "";
display: block;
width: 100%;
height: 50px;
position: absolute;
bottom: 0;
left: 0;
z-index: 2;
background: linear-gradient(to top,#f2f3f3,rgba(248,248,248,0));
}
}
@media (min-width:992px) {
.section__slider .container__center {
max-width: 1070px;
width: 100%;
}
}
if(window.innerWidth < 1200) {
new Swiper(".swiper-container",{
direction: "horizontal",
slidesPerView: 1,
nextButton: ".swiper-button-next",
prevButton: ".swiper-button-prev",
paginationClickable: !0,
spaceBetween: 0,
})
} else {
new Swiper(".swiper-container",{
direction: "horizontal",
slidesPerView: 1,
parallax: !0,
nextButton: ".swiper-button-next",
prevButton: ".swiper-button-prev",
paginationClickable: !0,
spaceBetween: 0,
speed: 1500,
parallax: !0,
})
}
Also see: Tab Triggers