Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

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.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML

              
                <html>
<section class="scroll__with_marquee">
  <!-- A delay can be added and speed <marquee scrolldelay="10"> scrollamount="25" -->
  <marquee direction="left" ; behavior="scroll" onmouseover="this.stop();" onmouseout="this.start();">
    <p class="content__text_marquee">Hi I'm a <span>scrolling</span> text, who stop when the mouse is on it and continue to scroll when is out ! i can go to the right if you change</p>
  </marquee>
  <marquee direction="right" ; behavior="slide" onmouseover="this.stop();" onmouseout="this.start();">
    <p class="content__text_marquee">Hi I'm a <span>slide</span> text, who stop when the mouse is on it and continue, my course stop once i reach the end</p>
  </marquee>
  <marquee direction="left" ; behavior="alternate" onmouseover="this.stop();" onmouseout="this.start();">
    <p class="content__text_marquee">Hi I'm a <span>bounce</span> text who alternate his way, who stop when the mouse is on it and continue to scroll when is out !</p>
  </marquee>
</section>
<section class="scroll__with_css">
  <p class="content__text_css scroll__css">Hi I'm a <span>scrolling</span> text, who stop when the mouse is on it and continue to scroll when is out ! i can go to the right if you change</p>
  <p class="content__text_css slide__css">Hi I'm a <span>slide</span> text, who stop when the mouse is on it and continue, my course stop once i reach the end</p>
  <p class="content__text_css bounce__css">Hi I'm a <span>bounce</span> text who alternate his way, who stop when the mouse is on it and continue to scroll when is out !</p>
</section>

</html>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap");

/*************Colors************/
:root {
  --background-color: #d5e3d5;
  --bg-color-banners-marquee: #333333;
  --text-color-marquee: #f3f7f3;
  --bg-color-banners-css: #f3f7f3;
  --text-color-css: #333333;
  --text-color-span: #4d9f59;
}

/*************Some style************/
body {
  background-color: var(--background-color);
  font-family: "Permanent Marker", cursive;
  margin: 0;
}

span {
  color: var(--text-color-span);
}

/**********with html marquee***********/
.content__text_marquee {
  text-align: center;
  color: var(--text-color-marquee);
  background-color: var(--bg-color-banners-marquee);
  padding: 0.2rem;
  margin: 0.2rem;
}

/************with CSS************/
/*Require: .scroll__with_cs and .content__text_css:hover*/

.scroll__with_css {
  overflow-x: hidden; /*will hidde the navbar*/
}

.content__text_css:hover {
  animation-play-state: paused; /*Will paused the content without renitialize*/
}

.content__text_css {
  text-align: center;
  background-color: var(--bg-color-banners-css);
  color: var(--text-color-css);
  padding: 0.2rem;
  margin: 0.5rem;
}

/***Scroll effect in CSS***/
.scroll__css {
  transform: translateX(100%);
  animation: move__css linear 25s forwards infinite;
}

@keyframes move__css {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/***Slide effect in CSS***/
.slide__css {
  animation: slide__move_css 25s ease-out;
}

@keyframes slide__move_css {
  0% {
    -webkit-transform: translateX(100%);
  }
}

/***Bounce in CSS***/
.bounce__css {
  animation: bounce__move_css linear 25s forwards infinite;
}

@keyframes bounce__move_css {
  0%,
  100% {
    -webkit-transform: translateX(70%);
  }
  50% {
    -webkit-transform: translateX(0%);
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console