Pen Settings



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


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


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.


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.

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.



<div class="js-ticker">
  <ul class="wrapper">
    <li style="width:100vw;"></li>
    <li>A violent order is disorder</li>
    <li>A great disorder is an order</li>
    <li>(Pages of illustrations.)</li>

<div class="js-ticker">
  <ul class="wrapper">
     <li>The future is description without place</li>
    <li>In the punctual centre of all circles white </li>
    <li>(Frettings on the blank.)</li>

<script type="text/javascript" src=""></script>


                body {
  background: black;
  overflow-x: hidden;

.js-ticker {
  width: 100vw;
  height: 100vh;
  position: relative;

.js-ticker .wrapper {
  position: absolute;
  white-space: nowrap;
  padding: 0;
  will-change: transform;

.js-ticker li {
  list-style: none;
  padding: 0;
  font-family: sans-serif;
  color: white;
  font-weight: 300;
  font-size: 20vw;
  display: inline-block;
  margin-right: 30px;



                const dur = 100; 
const wrap = gsap.utils.wrap(0, 1);

document.querySelectorAll('.js-ticker .wrapper').forEach(ticker => {

  let totalDistance;
  const items = ticker.querySelectorAll("li");
  let anim;

  let startPos;
  const draggable = new Draggable(ticker, {
    type: "x",
    trigger: ticker,
    throwProps: true,
    onPressInit: function() {
      startPos = this.x;
    onDrag: function() {
      let prog = wrap(-this.x / totalDistance);
    onThrowUpdate: function() {
      let prog = wrap(-this.x / totalDistance);
    onThrowComplete: function() {;
      gsap.fromTo(anim, {timeScale:0}, {duration: 2, timeScale:1, ease:""});
  function resize() {
    totalDistance = $(ticker).width() / 2;
    anim =, { 
      duration: dur,
      x: -totalDistance,
      ease: "none",
      repeat: -1, 
      overwrite: true