Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

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.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <!doctype html>
<html lang="fr">
    <head>
       
        <title>ESSAI</title>
    </head>
    <body class="home">
        

        <!-- HEADER -->
    <header class="main-header sticky-top">
    <!-- START NAVBAR -->
    <nav class="navbar navbar-expand-lg">
        <div class="container-fluid">
            <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"></button>
            <!-- menu -->
            <div class="collapse navbar-collapse" id="main-nav">  
                <ul class="navbar-nav">
                    <li class="nav-item">
                        <a class="nav-link active" href="#home"><i class="fas fa-home"></i></a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link js-scroll-trigger" href="#pied">Pied de page</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    </header>

    <!-- START HTML5 VIDEO -->
    <section id="home" class="html5-video">
        <video id="" class="" autoplay loop muted posted="img/paillettes_noires_ao.jpg)">
            <source src="http://thenewcode.com/assets/videos/polina.webm" type="video/webm">
            <source src="http://thenewcode.com/assets/videos/polina.mp4" type="video/mp4">
        </video>
        <div class="container-fluid p-0 m-0">         
            <!--- END ROW -->
        </div>
        <!--- END CONTAINER -->
    </section>
    <!-- END HTML5 VIDEO -->    

	<!-- START ABOUT -->

        <section id="about" class="section-padding my-5">
        <div class="container">
            <div class="row">
                <div id="particles-js"></div>

                <div class="col-lg-12 col-md-12 col-sm-12 col-12 text-center">
                    <p style="text-align: center; font-size: 17px;">Vous avez un projet sportif ?<br>
Nous constituons une <strong>équipe dédiée et adaptée</strong><br>
pour le <strong>suivi sportif.</p>
                <!-- end col -->
                </div>
            </div>
            <!--- END ROW -->
        </div>
        <!--- END CONTAINER -->
    </section>
    <!-- END ABOUT -->  

    </body>
</html>
            
          
!

CSS

            
              @import url("https://fonts.googleapis.com/css?family=Heebo:400,500,700,800,900");
@import url("https://fonts.googleapis.com/css?family=Heebo:300,400,500,700,800");
html {
  font-size: 62.5%;
  text-size-adjust: 100%; }

body {
  color: #373039;
  font-family: 'Heebo', sans-serif;
  font-size: 1.6rem;
  line-height: 1.4;
  overflow-x:hidden;
  /*width:100vw*/;
}

h2 {
  font-weight: 700; }

a,
button {
  color: #373039;
  box-shadow: none !important;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out; }

a:hover {
  color: #373039; }

button {
  background: none;
  border: none; }

ul {
  padding: 0; }
  ul li {
    list-style: none; }


/* HTML5 VIDEO  */
video { 
width: 100vw;
}

.titre-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
    width:auto !important;
}

.html5-video-text {
	position: absolute;
	width: 100%;
	left: 0;
	text-align: center;
	z-index: 15;
	top: 43%;
	-webkit-transform: translate(0%, -50%);
	-ms-transform: translate(0%, -50%);
	transform: translate(0%, -50%);
}
.html5-video-text h2 {
    color: #f8f8f8;
    font-size: 60px;
    padding-top: 200px;
    margin-top: 0;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.html5-video-text h3 {
    color: #f8f8f8;
    font-size: 60px;
    margin-top: 0;
    text-transform: uppercase;
    margin-bottom: 20px;
}
@media only screen and (max-width: 768px) {
    .html5-video-text h2 {
        padding-top: 155px;
    }
    .html5-video-text h2,
    .html5-video-text h3 {
        font-size: 20px;
    }
}
.html5-video-text p {
    color: #fff;
    margin: auto auto 30px;
}
/* particules */
canvas {
  display: block;
  vertical-align: bottom;
}
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
}

.container {
  position: relative; }
  @media screen and (min-width: 992px) {
    .container {
      min-width: 980px; } }
  @media screen and (min-width: 1320px) {
    .container {
      min-width: 1260px; } }

.main-header a:hover {
  text-decoration: none; }
.main-header .navbar {
  background: linear-gradient(90deg, #279c85 50%, #1a4b47);
  height: 6.5rem;
  padding: 0; 
    opacity:0.5;}
  @media screen and (min-width: 769px) {
    .main-header .navbar {
      padding: 0 1rem; } }
  .main-header .navbar .container {
    justify-content: flex-end;
    height: 100%; }
    @media screen and (min-width: 769px) {
      .main-header .navbar .container {
        justify-content: space-between; } }
    @media screen and (min-width: 992px) and (max-width: 1199px) {
      .main-header .navbar .container {
        padding: 0; } }
  .main-header .navbar .navbar-toggler {
    color: white;
    padding: .25rem 1.2rem; }
    .main-header .navbar .navbar-toggler:before {
      content: "\f0c9";
      font-family: "Font Awesome 5 Free";
      font-weight: 900;
      font-size: 2rem; }
    .main-header .navbar .navbar-toggler[aria-expanded="true"]:before {
      content: "\f00d"; }
  .main-header .navbar-brand {
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 1rem;
    text-align: center;
    width: 13rem;
    z-index: 1100; }
    .main-header .navbar-brand:before {
      content: "";
      background: white;
      height: 6.6rem;
      width: 13rem;
      position: absolute;
      top: 0;
      left: 0;
      -webkit-transition: all 0.2s linear;
      -moz-transition: all 0.2s linear;
      -ms-transition: all 0.2s linear;
      -o-transition: all 0.2s linear;
      transition: all 0.2s linear; }
    @media screen and (min-width: 576px) {
      .main-header .navbar-brand {
        padding-top: 1.5rem;
        width: 20rem; }
        .main-header .navbar-brand:before {
          width: 20rem; } }
    @media screen and (min-width: 992px) {
      .main-header .navbar-brand {
        width: 16rem; }
        .main-header .navbar-brand:before {
          width: 16rem; } }
    @media screen and (min-width: 1200px) {
      .main-header .navbar-brand {
        left: 1.5rem;
        width: 32rem; }
        .main-header .navbar-brand:before {
          width: 32rem; } }
    .main-header .navbar-brand img {
      position: relative;
      width: 10rem;
      -webkit-transition: all 0.2s linear;
      -moz-transition: all 0.2s linear;
      -ms-transition: all 0.2s linear;
      -o-transition: all 0.2s linear;
      transition: all 0.2s linear; }
      @media screen and (min-width: 576px) {
        .main-header .navbar-brand img {
          width: 16rem; } }
      @media screen and (min-width: 992px) {
        .main-header .navbar-brand img {
          width: 13rem; } }
      @media screen and (min-width: 1200px) {
        .main-header .navbar-brand img {
          width: 26.7rem; } }
    @media screen and (min-width: 1200px) {
      .main-header .navbar-brand.stick {
        width: 24rem; }
        .main-header .navbar-brand.stick:before {
          width: 24rem;
          -webkit-transition: all 0.2s linear;
          -moz-transition: all 0.2s linear;
          -ms-transition: all 0.2s linear;
          -o-transition: all 0.2s linear;
          transition: all 0.2s linear; }
        .main-header .navbar-brand.stick img {
          width: 17rem;
          -webkit-transition: all 0.2s linear;
          -moz-transition: all 0.2s linear;
          -ms-transition: all 0.2s linear;
          -o-transition: all 0.2s linear;
          transition: all 0.2s linear; } }
  .main-header .navbar-collapse {
    background: #F24141;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    position: absolute;
    top: 12.5rem;
    height: calc(100vh - 12.5rem) !important;
    transition: left 0.5s;
    width: 100%;
    z-index: 1000; }
    @media screen and (min-width: 576px) {
      .main-header .navbar-collapse {
        background: #eee;
        justify-content: flex-start;
        padding-top: 15rem; } }
    @media screen and (min-width: 769px) {
      .main-header .navbar-collapse {
        background: none;
        flex-direction: row;
        justify-content: flex-end;
        position: initial;
        top: 0;
        height: auto !important;
        transition: none;
        padding-top: 0; } }
    .main-header .navbar-collapse.show, .main-header .navbar-collapse.collapsing {
      left: -15px;
      width: calc(100% + 30px); }
      @media screen and (min-width: 576px) {
        .main-header .navbar-collapse.show, .main-header .navbar-collapse.collapsing {
          left: -25px;
          width: calc(100% + 50px); } }
      @media screen and (min-width: 769px) {
        .main-header .navbar-collapse.show, .main-header .navbar-collapse.collapsing {
          left: -40px;
          width: calc(100% + 80px); } }
      .main-header .navbar-collapse.show .navbar-nav, .main-header .navbar-collapse.collapsing .navbar-nav {
        width: 80%; }
        @media screen and (min-width: 769px) {
          .main-header .navbar-collapse.show .navbar-nav, .main-header .navbar-collapse.collapsing .navbar-nav {
            width: auto; } }
        .main-header .navbar-collapse.show .navbar-nav .nav-link, .main-header .navbar-collapse.collapsing .navbar-nav .nav-link {
          background: #279c85;
          font-size: 1.6rem;
          margin-bottom: 0.5rem;
          padding: 0.5rem 1.5rem;
          -webkit-border-radius: 5px;
          -moz-border-radius: 5px;
          border-radius: 5px; }
          .main-header .navbar-collapse.show .navbar-nav .nav-link:hover, .main-header .navbar-collapse.collapsing .navbar-nav .nav-link:hover {
            background: #228874; }
          @media screen and (min-width: 576px) {
            .main-header .navbar-collapse.show .navbar-nav .nav-link, .main-header .navbar-collapse.collapsing .navbar-nav .nav-link {
              margin-bottom: 1rem;
              padding: 1rem 2rem; } }
          @media screen and (min-width: 576px) and (max-width: 768px) {
            .main-header .navbar-collapse.show .navbar-nav .nav-link, .main-header .navbar-collapse.collapsing .navbar-nav .nav-link {
              font-size: 2rem; } }
          @media screen and (min-width: 769px) {
            .main-header .navbar-collapse.show .navbar-nav .nav-link, .main-header .navbar-collapse.collapsing .navbar-nav .nav-link {
              background: none; } }
  .main-header .navbar .collapse:not(.show) {
    left: calc(-100% - 1.5rem); }
    @media screen and (min-width: 768px) {
      .main-header .navbar .collapse:not(.show) {
        left: calc(-100% - 4rem); } }
  .main-header .navbar-nav {
    font-size: 1.5rem; }
    @media screen and (min-width: 1200px) {
      .main-header .navbar-nav {
        padding: .5rem 1rem; } }
    .main-header .navbar-nav .nav-item {
      padding-left: 1rem;
      padding-right: 1rem;
      position: relative; }
      @media screen and (min-width: 992px) and (max-width: 1200px) {
        .main-header .navbar-nav .nav-item {
          padding-left: 0.5rem;
          padding-right: 0.5rem; } }
    .main-header .navbar-nav .nav-link {
      color: white;
      position: relative; }
      .main-header .navbar-nav .nav-link:after {
        content: "";
        background: white;
        display: block;
        height: 2px;
        width: 0;
        left: 50%;
        position: absolute;
        bottom: 0;
        transition: width 0.3s ease 0s, left 0.3s ease 0s; }
      @media screen and (min-width: 769px) {
        .main-header .navbar-nav .nav-link {
          font-size: 1.5rem;
          padding: .5rem; }
          .main-header .navbar-nav .nav-link:hover:after, .main-header .navbar-nav .nav-link.active:after {
            left: 0;
            width: 100%; } }
    .main-header .navbar-nav .dropdown-menu {
      background: #279c85;
      border: none;
      border-radius: 0.5rem;
      color: white;
      font-size: 1.4rem;
      margin: 0 2rem 1rem 2rem;
      padding: 1rem 0; }
      @media screen and (min-width: 576px) {
        .main-header .navbar-nav .dropdown-menu {
          margin: -0.5rem 2rem 1rem 2rem;
          padding: 2rem 0; } }
      @media screen and (min-width: 769px) {
        .main-header .navbar-nav .dropdown-menu {
          margin: .125rem 0 0; } }
    .main-header .navbar-nav .dropdown-item {
      color: white;
      padding: .3rem 2rem; }
      @media screen and (min-width: 576px) {
        .main-header .navbar-nav .dropdown-item {
          padding: .5rem 2rem; } }
      .main-header .navbar-nav .dropdown-item:focus, .main-header .navbar-nav .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.3); }
    .main-header .navbar-nav.icons {
      flex-direction: row;
      padding-right: 0 !important; }
      .main-header .navbar-nav.icons li {
        color: white;
        font-size: 2rem;
        padding: 0 1.3rem;
        position: relative; }
        @media screen and (min-width: 769px) {
          .main-header .navbar-nav.icons li {
            padding: 0 1rem; } }
        .main-header .navbar-nav.icons li:before {
          content: "";
          background: white;
          position: absolute;
          left: 0;
          top: 0.7rem;
          bottom: 0.7rem;
          width: 1px; }
        .main-header .navbar-nav.icons li span {
          font-size: 1.1rem;
          position: absolute;
          bottom: -1rem;
          left: 0.8rem; }
      .main-header .navbar-nav.icons .nav-link:after {
        display: none; }
      .main-header .navbar-nav.icons .nav-link:hover, .main-header .navbar-nav.icons .nav-link.active {
        color: #F24141; }
.main-header .topbar {
  background: white;
  height: 6rem;
  width: 100%; }
  @media screen and (min-width: 769px) {
    .main-header .topbar {
      height: 8rem; } }
  .main-header .topbar .container {
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem; }
    @media screen and (min-width: 769px) {
      .main-header .topbar .container {
        height: 8rem;
        padding-right: 1.5rem; } }
  .main-header .topbar .socialbar {
    display: flex;
    align-items: center;
    justify-content: flex-end; }
    @media screen and (min-width: 769px) {
      .main-header .topbar .socialbar {
        align-items: flex-end; } }
    .main-header .topbar .socialbar .phone {
      background: url("../img/common/icon-phone.png") no-repeat center right;
      font-size: 1.3rem;
      line-height: 1;
      margin: 0;
      padding-right: 5rem;
      text-align: right;
      position: absolute;
      right: 1rem;
      width: 100%; }
      @media screen and (min-width: 769px) {
        .main-header .topbar .socialbar .phone {
          margin: 0 2rem 0 0;
          position: initial;
          width: auto; } }
      .main-header .topbar .socialbar .phone strong {
        display: block;
        font-size: 1.6rem;
        font-weight: 600; }
        @media screen and (min-width: 769px) {
          .main-header .topbar .socialbar .phone strong {
            font-size: 1.8rem; } }
    .main-header .topbar .socialbar ul {
      background: white;
      display: flex;
      margin-bottom: 0;
      position: relative;
      visibility: hidden;
      opacity: 0;
      -webkit-transition: all 0.5s linear;
      -moz-transition: all 0.5s linear;
      -ms-transition: all 0.5s linear;
      -o-transition: all 0.5s linear;
      transition: all 0.5s linear; }
      .main-header .topbar .socialbar ul.show {
        visibility: visible;
        opacity: 1; }
      @media screen and (min-width: 769px) {
        .main-header .topbar .socialbar ul {
          visibility: visible;
          opacity: 1; } }
      .main-header .topbar .socialbar ul a {
        color: white;
        display: flex;
        height: 3.6rem;
        width: 3.6rem;
        margin-left: 0.5rem;
        align-items: center;
        justify-content: center;
        -webkit-border-radius: 4rem;
        -moz-border-radius: 4rem;
        border-radius: 4rem; }
      .main-header .topbar .socialbar ul .facebook {
        background: #3b5998; }
      .main-header .topbar .socialbar ul .youtube {
        background: #ff0000; }
      .main-header .topbar .socialbar ul .flickr {
        background: #ff0084; }
      .main-header .topbar .socialbar ul .rss {
        background: #f26522; }
      .main-header .topbar .socialbar ul .mail {
        background: #279D85; }

.main-content {
  padding-bottom: 4rem;
  position: relative; }


            
          
!

JS

            
              particlesJS("particles-js", {
  "particles": {
    "number": {
      "value": 355,
      "density": {
        "enable": true,
        "value_area": 789.1476416322727
      }
    },
    "color": {
      "value": "#FFF"
    },
    "shape": {
      "type": "circle",
      "stroke": {
        "width": 0,
        "color": "#000000"
      },
      "polygon": {
        "nb_sides": 5
      },
      "image": {
        "src": "",
        "width": 100,
        "height": 100
      }
    },
    "opacity": {
      "value": 0.48927153781200905,
      "random": false,
      "anim": {
        "enable": true,
        "speed": 0.2,
        "opacity_min": 0,
        "sync": false
      }
    },
    "size": {
      "value": 5,
      "random": true,
      "anim": {
        "enable": true,
        "speed": 2,
        "size_min": 0,
        "sync": false
      }
    },
    "line_linked": {
      "enable": false,
      "distance": 150,
      "color": "#ffffff",
      "opacity": 0.4,
      "width": 1
    },
    "move": {
      "enable": true,
      "speed": 0.2,
      "direction": "none",
      "random": true,
      "straight": false,
      "out_mode": "out",
      "bounce": false,
      "attract": {
        "enable": false,
        "rotateX": 600,
        "rotateY": 1200
      }
    }
  },
  "interactivity": {
    "detect_on": "canvas",
    "events": {
      "onhover": {
        "enable": true,
        "mode": "bubble"
      },
      "onclick": {
        "enable": true,
        "mode": "push"
      },
      "resize": true
    },
    "modes": {
      "grab": {
        "distance": 400,
        "line_linked": {
          "opacity": 1
        }
      },
      "bubble": {
        "distance": 83.91608391608392,
        "size": 1,
        "duration": 3,
        "opacity": 1,
        "speed": 3
      },
      "repulse": {
        "distance": 200,
        "duration": 0.4
      },
      "push": {
        "particles_nb": 4
      },
      "remove": {
        "particles_nb": 2
      }
    }
  },
  "retina_detect": true
});
            
          
!
999px

Console