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 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

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.

HTML

              
                <html>
  
  <head> 
    
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  </head>
  <body>
    
      <h1>Responsive News Ticker</h1>
    <section style="margin-top:50px">
      <div class="demo4"></div></section>
    
    <p style="text-align: center">Check it out on   <a href="http://codecanyon.net/item/cream-soda-jquery-news-ticker/5829088?WT.ac=new_item&WT.seg_1=new_item&WT.z_author=SodaCSS" target="_blank">Code Canyon</a></p>

<script>

    </script></body>
</html>
              
            
!

CSS

              
                /* Custom Mixins*/
/* Variables */
/*  Cream Soda Colours */
/* Base Page Styles */
/* line 12, ../sass/base.scss */
html, body {
  margin: 0;
  min-height: 100%;
  padding: 0;
  font-family: 'helvetica', 'arial';
}

/* line 19, ../sass/base.scss */
h1 {
  font-size: 1.8em;
  margin-bottom: 0;
  color: #3a3a3a;
  margin-top:100px;
  text-align: center
}

/* line 25, ../sass/base.scss */
h2 {
  font-size: 1.5em;
  margin-top:3em;
}

/* line 30, ../sass/base.scss */
p {
  font-size: 1em;
  color: #858585;
}

/* line 35, ../sass/base.scss */
body {
  background: url(../img/bg.jpg) no-repeat center fixed #f2f9f3;
  font-size: 16px;
  background-size: cover;
}

/* line 41, ../sass/base.scss */
strong, a {
  color: #5ac9b2;
  font-weight: bold;
  text-decoration: none;
}

/* line 48, ../sass/base.scss */
code {
  background: #fff;
  padding: 1em;
  margin-top: 1em;
  margin-bottom: 1em;
  border: 1px solid #eaeaea;
  width: 100%;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border-radius: 3px;
  display: block;
}
@media (min-width: 720px) {
  /* line 48, ../sass/base.scss */
  code {
    padding: 1em;
  }
}
@media (min-width: 1200px) {
  /* line 48, ../sass/base.scss */
  code {
    padding: 1em;
  }
}
/* line 63, ../sass/base.scss */
code span {
  padding-left: 3em;
}

/* line 67, ../sass/base.scss */
header {
  width: columns-width(12);
  padding: 1em;
  text-align: center;
}
@media (min-width: 720px) {
  /* line 67, ../sass/base.scss */
  header {
    padding: 1em;
  }
}
@media (min-width: 1200px) {
  /* line 67, ../sass/base.scss */
  header {
    padding: 1em;
  }
}

/* line 74, ../sass/base.scss */
header .logo {
  background: url(../img/creamsoda.png) no-repeat center;
  display: inline-block;
  width: 15em;
  height: 20em;
}

/* line 82, ../sass/base.scss */
body > section {
  margin: 0 auto;
  max-width: 80%;
  background: transparent;
  border-radius: 5px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 5em;
}

/* line 91, ../sass/base.scss */
body > article {
  margin: 0 auto;
  max-width: 70%;
  background: white;
  border-radius: 5px;
  padding: 3em;
  line-height: 1.8em;
  margin-bottom: 5em;
  *zoom: 1;
}
@media (min-width: 720px) {
  /* line 91, ../sass/base.scss */
  body > article {
    padding: 3em;
  }
}
@media (min-width: 1200px) {
  /* line 91, ../sass/base.scss */
  body > article {
    padding: 3em;
  }
}
/* line 18, ../bourbon/addons/_clearfix.scss */
body > article:before, body > article:after {
  content: " ";
  display: table;
}
/* line 23, ../bourbon/addons/_clearfix.scss */
body > article:after {
  clear: both;
}

/* line 104, ../sass/base.scss */
table {
  border: 1px solid #cacaca;
  width: 100%;
  margin-top:2em;
  border-collapse: collapse;
}
/* line 110, ../sass/base.scss */
table tr {
  border-top: 1px solid #cacaca;
}
/* line 113, ../sass/base.scss */
table th, table td {
  padding: 1em;
  border-right: 1px solid #cacaca;
}
@media (min-width: 720px) {
  /* line 113, ../sass/base.scss */
  table th, table td {
    padding: 1em;
  }
}
@media (min-width: 1200px) {
  /* line 113, ../sass/base.scss */
  table th, table td {
    padding: 1em;
  }
}
/* line 118, ../sass/base.scss */
table th {
  background: #eaeaea;
}
/* line 122, ../sass/base.scss */
table tr > td:first-child {
  font-weight: bold;
}
/* line 126, ../sass/base.scss */
table tr > td:nth-child(2) {
  font-style: italic;
  font-family: georgia;
}


h4 {
  padding-left: 20px;
  color:#777;
}

/* Custom Mixins*/
/* Variables */
/* line 2, ../sass/ticker/_base.scss */
html, body {
  font-size: 14px;
}

/* line 5, ../sass/ticker/_base.scss */
.csTicker {
  background: #fafcfa;
  border-radius: 3px;
  overflow: hidden;
  height: 500px;
  position: relative;
}
/* line 13, ../sass/ticker/_base.scss */
.csTicker a {
  color: #333333;
  text-decoration: none;
  cursor: pointer;
}
/* line 19, ../sass/ticker/_base.scss */
.csTicker ul {
  position: absolute;
}
/* line 23, ../sass/ticker/_base.scss */
.csTicker ul, .csTicker li {
  list-style: none;
  padding: 0;
  margin: 0;
}
/* line 29, ../sass/ticker/_base.scss */
.csTicker .csTicker__spinner {
  height: 100%;
  width: 100%;
  background: url(../img/spinner.png) no-repeat center;
  position: absolute;
  z-index: 400;
}
/* line 37, ../sass/ticker/_base.scss */
.csTicker .csTicker__title {
  padding-top: 1em;
  padding-left: 1em;
  padding-right: 1em;
  padding-bottom: 0.5em;
  background: #5ac9b2;
  color: white;
  font-weight: bold;
  font-size: 1.5em;
  text-align: center;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 100;
  border-bottom: 10px solid rgba(0, 0, 0, 0.1);
}
@media (min-width: 720px) {
  /* line 37, ../sass/ticker/_base.scss */
  .csTicker .csTicker__title {
    padding-top: 1em;
  }
}
@media (min-width: 1200px) {
  /* line 37, ../sass/ticker/_base.scss */
  .csTicker .csTicker__title {
    padding-top: 1em;
  }
}
@media (min-width: 720px) {
  /* line 37, ../sass/ticker/_base.scss */
  .csTicker .csTicker__title {
    padding-left: 1em;
  }
}
@media (min-width: 1200px) {
  /* line 37, ../sass/ticker/_base.scss */
  .csTicker .csTicker__title {
    padding-left: 1em;
  }
}
@media (min-width: 720px) {
  /* line 37, ../sass/ticker/_base.scss */
  .csTicker .csTicker__title {
    padding-right: 1em;
  }
}
@media (min-width: 1200px) {
  /* line 37, ../sass/ticker/_base.scss */
  .csTicker .csTicker__title {
    padding-right: 1em;
  }
}
@media (min-width: 720px) {
  /* line 37, ../sass/ticker/_base.scss */
  .csTicker .csTicker__title {
    padding-bottom: 0.5em;
  }
}
@media (min-width: 1200px) {
  /* line 37, ../sass/ticker/_base.scss */
  .csTicker .csTicker__title {
    padding-bottom: 0.5em;
  }
}
/* line 55, ../sass/ticker/_base.scss */
.csTicker li {
  border-bottom: 1px solid #e8e8e8;
  border-top: 1px solid white;
  padding: 1em;
  *zoom: 1;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: block;
}
@media (min-width: 720px) {
  /* line 55, ../sass/ticker/_base.scss */
  .csTicker li {
    padding: 1em;
  }
}
@media (min-width: 1200px) {
  /* line 55, ../sass/ticker/_base.scss */
  .csTicker li {
    padding: 1em;
  }
}
/* line 18, ../bourbon/addons/_clearfix.scss */
.csTicker li:before, .csTicker li:after {
  content: " ";
  display: table;
}
/* line 23, ../bourbon/addons/_clearfix.scss */
.csTicker li:after {
  clear: both;
}
/* line 67, ../sass/ticker/_base.scss */
.csTicker li:first-child {
  border-top: none;
}
/* line 73, ../sass/ticker/_base.scss */
.csTicker li > .col {
  float: left;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
/* line 80, ../sass/ticker/_base.scss */
.csTicker li > .col:first-child {
  width: 25%;
}
/* line 84, ../sass/ticker/_base.scss */
.csTicker li > .col:last-child {
  width: 75%;
  padding-left: 1em;
}
@media (min-width: 720px) {
  /* line 84, ../sass/ticker/_base.scss */
  .csTicker li > .col:last-child {
    padding-left: 1em;
  }
}
@media (min-width: 1200px) {
  /* line 84, ../sass/ticker/_base.scss */
  .csTicker li > .col:last-child {
    padding-left: 1em;
  }
}
/* line 90, ../sass/ticker/_base.scss */
.csTicker img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}
/* line 96, ../sass/ticker/_base.scss */
.csTicker p {
  margin: 0;
  font-size: 1em;
  line-height: 1.4em;
}
/* line 101, ../sass/ticker/_base.scss */
.csTicker p.h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.3em;
  color: #333333;
  font-weight: bold;
}
@media (min-width: 720px) {
  /* line 101, ../sass/ticker/_base.scss */
  .csTicker p.h3 {
    margin-bottom: 0.5em;
  }
}
@media (min-width: 1200px) {
  /* line 101, ../sass/ticker/_base.scss */
  .csTicker p.h3 {
    margin-bottom: 0.5em;
  }
}
/* line 110, ../sass/ticker/_base.scss */
.csTicker p.small {
  font-size: 0.875em;
  margin-top: 0.5em;
  color: #5ac9b2;
}
@media (min-width: 720px) {
  /* line 110, ../sass/ticker/_base.scss */
  .csTicker p.small {
    margin-top: 0.5em;
  }
}
@media (min-width: 1200px) {
  /* line 110, ../sass/ticker/_base.scss */
  .csTicker p.small {
    margin-top: 0.5em;
  }
}
/* line 117, ../sass/ticker/_base.scss */
.csTicker li.featured p.h3, .csTicker li.featured p.small {
  color: #DC0066;
}

@media (max-width: 799px) {
  /* line 125, ../sass/ticker/_base.scss */
  .csTicker .csTicker__title {
    font-size: 1.2em;
    overflow: hidden;
    padding: 1.3em 6em 0.8em 1em;
    text-align: left !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
/* line 1, ../sass/ticker/_buttons.scss */
.csTicker__buttons {
  height: 4em;
  position: absolute;
  right: 0;
  top: 0;
  width: 7em;
  z-index: 200;
}
/* line 9, ../sass/ticker/_buttons.scss */
.csTicker__buttons > div {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  opacity: 0.6;
}
/* line 14, ../sass/ticker/_buttons.scss */
.csTicker__buttons > div:hover {
  opacity: 1;
}

/* line 20, ../sass/ticker/_buttons.scss */
.buttons__prev-button {
  background: url("../img/arrow_up.png") no-repeat scroll center center rgba(0, 0, 0, 0);
  cursor: pointer;
  float: left;
  height: 4em;
  width: 3em;
}

/* line 28, ../sass/ticker/_buttons.scss */
.buttons__next-button {
  background: url("../img/arrow_down.png") no-repeat scroll center center rgba(0, 0, 0, 0);
  cursor: pointer;
  float: left;
  height: 4em;
  width: 3em;
}

/* line 37, ../sass/ticker/_buttons.scss */
.csTicker.csTicker--mini .csTicker__buttons {
  background: #e8e8e8;
  height: 3em;
  position: absolute;
  right: 0;
  top: 0;
  width: 6em;
  z-index: 200;
}
/* line 47, ../sass/ticker/_buttons.scss */
.csTicker.csTicker--mini .buttons__prev-button {
  height: 3em;
  background: url("../img/arrow_left.png") no-repeat scroll center center rgba(0, 0, 0, 0);
}
/* line 51, ../sass/ticker/_buttons.scss */
.csTicker.csTicker--mini .buttons__next-button {
  height: 3em;
  background: url("../img/arrow_right.png") no-repeat scroll center center rgba(0, 0, 0, 0);
}

/* line 1, ../sass/ticker/_horizontal.scss */
.csTicker.csTicker--horizontal {
  height: auto;
  padding-bottom: 1em;
}
@media (min-width: 720px) {
  /* line 1, ../sass/ticker/_horizontal.scss */
  .csTicker.csTicker--horizontal {
    padding-bottom: 1em;
  }
}
@media (min-width: 1200px) {
  /* line 1, ../sass/ticker/_horizontal.scss */
  .csTicker.csTicker--horizontal {
    padding-bottom: 1em;
  }
}
/* line 7, ../sass/ticker/_horizontal.scss */
.csTicker.csTicker--horizontal ul > li > .col:last-child {
  min-width: 75%;
}
/* line 12, ../sass/ticker/_horizontal.scss */
.csTicker.csTicker--horizontal .buttons__prev-button {
  background: url(../img/arrow_left.png) no-repeat center;
}
/* line 15, ../sass/ticker/_horizontal.scss */
.csTicker.csTicker--horizontal .buttons__next-button {
  background: url(../img/arrow_right.png) no-repeat center;
}
/* line 20, ../sass/ticker/_horizontal.scss */
.csTicker.csTicker--horizontal ul {
  width: 100000px;
  height: 100%;
}
/* line 25, ../sass/ticker/_horizontal.scss */
.csTicker.csTicker--horizontal ul > li {
  float: left;
  display: inline;
  border-bottom: 0;
  width: auto;
}

/* line 1, ../sass/ticker/_mini.scss */
.csTicker.csTicker--mini {
  height: 3em;
}
/* line 5, ../sass/ticker/_mini.scss */
.csTicker.csTicker--mini ul > li > .col:first-child {
  display: none;
}
/* line 8, ../sass/ticker/_mini.scss */
.csTicker.csTicker--mini ul > li > .col:last-child {
  width: 100%;
  padding: 0;
}
/* line 13, ../sass/ticker/_mini.scss */
.csTicker.csTicker--mini .csTicker__title {
  border-bottom: 0 none;
  display: block;
  float: left;
  font-size: 1em;
  height: auto;
  padding-bottom: 1em;
  padding-right: 1em;
  padding-top: 1em;
}
/* line 24, ../sass/ticker/_mini.scss */
.csTicker.csTicker--mini ul {
  width: 100000px;
}
/* line 28, ../sass/ticker/_mini.scss */
.csTicker.csTicker--mini ul > li {
  float: left;
  display: inline;
  width: auto;
}
/* line 34, ../sass/ticker/_mini.scss */
.csTicker.csTicker--mini p {
  display: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
/* line 41, ../sass/ticker/_mini.scss */
.csTicker.csTicker--mini li > .col > p.h3, .csTicker.csTicker--mini li > p.h3 {
  display: block;
  font-size: 1em;
  color: #5c5c5c;
  font-weight: normal;
}

@media (max-width: 559px) {
  /* line 50, ../sass/ticker/_mini.scss */
  .csTicker.csTicker--mini .csTicker__title {
    display: none;
    width: 0;
    padding: 0;
    margin: 0;
  }
}

              
            
!

JS

              
                (function(e){e.fn.csTicker=function(t){function f(t){e(t).find("li").css("width",e(t).outerWidth()-e(t).find(".csTicker__title").outerWidth());e(t).find("ul").css("left",e(t).find(".csTicker__title").outerWidth());e(t).find(".wrapper").css("height",e(t).find("li").outerHeight());e(window).resize(function(){var n=e(t).find(".csTicker__title").outerWidth();e(t).find("li").css("width",e(t).outerWidth()-n);var r=e(t).find("ul").children("li").eq(s).position().left;var i=r-n;e(t).find("ul").css("left",-i);e(t).find(".wrapper").css("height",e(t).find("li").outerHeight())})}function l(n){titleWidth=e(n).find(".csTicker__title").outerWidth();buttonWidth=e(n).find(".csTicker__buttons").outerWidth();var r=e(n).parent().innerWidth();var i;if(r>768){i=3}else if(r>480){i=2}else{i=1}e(n).find("li").css("width",e(n).outerWidth()/i);var o=e(n).find("li").map(function(){return e(this).height()}).get();e(n).find(".wrapper").css("height",Math.max.apply(null,o)+20);e(n).find("ul").animate({left:"-"+e(n).find("ul").children("li").eq(s).position().left},t.speed,"swing");e(window).resize(function(){var r;var i=e(n).parent().innerWidth();if(i>768){r=3}else if(i>480){r=2}else{r=1}e(n).find("li").css("width",e(n).outerWidth()/r);var o=e(n).find("li").map(function(){return e(this).height()}).get();e(n).find(".wrapper").css("height",Math.max.apply(null,o)+20);e(n).find("ul").animate({left:"-"+e(n).find("ul").children("li").eq(s).position().left},t.speed,"swing")})}function c(e){setInterval(function(){h("next",e)},t.delay)}function h(n,r){if(!o){switch(n){case"next":if(s<e(r).find("li").length-1){switch(t.tickerMode){case"mini":e(r).find("ul").animate({left:"-"+(e(r).find("ul").children("li").eq(s+1).position().left-e(r).find(".csTicker__title").outerWidth())},t.speed,"swing");break;case"horizontal":e(r).find("ul").animate({left:"-"+e(r).find("ul").children("li").eq(s+1).position().left},t.speed,"swing");break;default:e(r).find("ul").animate({top:"-"+(e(r).find("ul").children("li").eq(s+1).position().top-e(r).find(".csTicker__title").outerHeight())},t.speed,"swing");break}s++}else{switch(t.tickerMode){case"mini":e(r).find("ul").animate({left:"-"+(e(r).find("ul").children("li").eq(0).position().left-e(r).find(".csTicker__title").outerWidth())},t.speed,"swing");break;case"horizontal":e(r).find("ul").animate({left:"-"+e(r).find("ul").children("li").eq(0).position().left},t.speed,"swing");break;default:e(r).find("ul").animate({top:"-"+(e(r).find("ul").children("li").eq(0).position().top-e(r).find(".csTicker__title").outerHeight())},t.speed,"swing");break}s=0}break;case"prev":if(s>0){switch(t.tickerMode){case"mini":e(r).find("ul").animate({left:"-"+(e(r).find("ul").children("li").eq(s-1).position().left-e(r).find(".csTicker__title").outerWidth())},t.speed,"swing");break;case"horizontal":e(r).find("ul").animate({left:"-"+e(r).find("ul").children("li").eq(s-1).position().left},t.speed,"swing");break;default:e(r).find("ul").animate({top:"-"+(e(r).find("ul").children("li").eq(s-1).position().top-e(r).find(".csTicker__title").outerHeight())},t.speed,"swing");break}s--}else{switch(t.tickerMode){case"mini":e(r).find("ul").animate({left:"-"+(e(r).find("ul").children("li").eq(e(r).find("ul").children("li").length-1).position().left-e(r).find(".csTicker__title").outerWidth())},t.speed,"swing");break;case"horizontal":e(r).find("ul").animate({left:"-"+e(r).find("ul").children("li").eq(e(r).find("ul").children("li").length-1).position().left},t.speed,"swing");break;default:e(r).find("ul").animate({top:"-"+(e(r).find("ul").children("li").eq(e(r).find("ul").children("li").length-1).position().top-e(r).find(".csTicker__title").outerHeight())},t.speed,"swing");break}s=0}break}}}var n={tickerMode:"vertical",customCSS:false,delay:5e3,speed:300,autoAnimate:true,buttons:true,highlightFeatured:true,stickyFeature:false,tickerTitle:false,contentFeed:false,feedCount:10,truncateAt:100,linkTarget:"_blank",addEllipsis:false,pauseOnHover:true,backgroundColour:false,titleColour:false,titleTextColour:false};var t=e.extend({},n,t);var r;var i=e(this).attr("id");var s=0;var o=false;if(t.customCSS){e("<link/>",{rel:"stylesheet",type:"text/css",href:customCSS}).appendTo("head")}var u=this;if(t.contentFeed){var a;e.ajax({type:"GET",url:document.location.protocol+"//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=1000&callback=?&q="+encodeURIComponent(t.contentFeed),dataType:"json",error:function(){},success:function(n){a=n.responseData.feed.entries;var r="<ul>";e(a).each(function(){var n=e(this).html();r+="<li>";if(e(this).data("img")){r+='<div class="col"><img src="'+e(this).attr("img")+'"/>';r+='</div><div class="col">'}r+='<p class="h3"><a target="'+t.linkTarget+'" href="'+e(this).attr("link")+'">'+e(this).attr("title")+"</a></p>";if(t.truncateAt){var i=e(this).attr("contentSnippet").substr(0,t.truncateAt);i=i.substr(0,Math.min(i).length,i.lastIndexOf(" "))}else{var i=e(this).attr("contentSnippet")}if(t.addEllipsis){i+="..."}r+="<p>"+i+"</p>";r+='<p class="small">'+e(this).attr("author")+" - "+e(this).attr("publishedDate")+"</p>";if(e(this).data("img")){r+="</div>"}r+="</li>"});e(u).append(r+"</ul>").find(".csTicker__spinner").remove();f(u)}});e(this).append('<div class="csTicker__spinner"><img src="img/spinner.gif" /></div>')}if(t.tickerTitle){e(this).prepend('<div class="csTicker__title">'+t.tickerTitle+"</div>")}e(this).find("ul").wrap('<div class="wrapper"></div>');if(t.buttons){e(this).prepend('<div class="csTicker__buttons"><div class="buttons__prev-button"></div><div class="buttons__next-button"></div></div>')}if(!t.contentFeed){e(this).find("li").each(function(){var n=e(this).html();if(t.highlightFeatured&&e(this).data("featured")==true){e(this).addClass("featured")}var r="";if(e(this).data("img")){r+='<div class="col">';r+='<img src="'+e(this).data("img")+'"/>';r+='</div><div class="col">'}if(e(this).data("title")){r+='<p class="h3"><a target="'+t.linkTarget+'" href="'+e(this).data("link")+'">'+e(this).data("title")+"</a></p>"}if(t.truncateAt){var i=n.substr(0,t.truncateAt);i=i.substr(0,Math.min(i).length,i.lastIndexOf(" "))}else{var i=n}if(t.addEllipsis){i+="..."}r+="<p>"+i+"</p>";if(e(this).data("meta")){r+='<p class="small">'+e(this).data("meta")+"</p>"}if(e(this).data("img")){r+="</div>"}e(this).empty().append(r)})}e(this).addClass("csTicker");switch(t.tickerMode){case"horizontal":e(this).addClass("csTicker--horizontal");l(this);break;case"mini":e(this).addClass("csTicker--mini");f(this);break;case"grid":e(this).addClass("csTicker--grid");break;default:break}if(t.backgroundColour){e(this).css("background",t.backgroundColour)}if(t.titleColour){e(this).find(".csTicker__title").css("background",t.titleColour)}if(t.titleTextColour){e(this).find(".csTicker__title").css("color",t.titleTextColour)}if(t.pauseOnHover){e(u).find("ul").mouseenter(function(){o=true}).mouseleave(function(){o=false})}return this.each(function(){var n=e(this);if(t.autoAnimate){c(n)}if(t.buttons){e(this).find(".buttons__prev-button").click(function(){h("prev",n)});e(this).find(".buttons__next-button").click(function(){h("next",n)})}})}})(jQuery);(function(e){e.fn.csTicker=function(t){function f(t){e(t).find("li").css("width",e(t).outerWidth()-e(t).find(".csTicker__title").outerWidth());e(t).find("ul").css("left",e(t).find(".csTicker__title").outerWidth());e(t).find(".wrapper").css("height",e(t).find("li").outerHeight());e(window).resize(function(){var n=e(t).find(".csTicker__title").outerWidth();e(t).find("li").css("width",e(t).outerWidth()-n);var r=e(t).find("ul").children("li").eq(s).position().left;var i=r-n;e(t).find("ul").css("left",-i);e(t).find(".wrapper").css("height",e(t).find("li").outerHeight())})}function l(n){titleWidth=e(n).find(".csTicker__title").outerWidth();buttonWidth=e(n).find(".csTicker__buttons").outerWidth();var r=e(n).parent().innerWidth();var i;if(r>768){i=3}else if(r>480){i=2}else{i=1}e(n).find("li").css("width",e(n).outerWidth()/i);var o=e(n).find("li").map(function(){return e(this).height()}).get();e(n).find(".wrapper").css("height",Math.max.apply(null,o)+20);e(n).find("ul").animate({left:"-"+e(n).find("ul").children("li").eq(s).position().left},t.speed,"swing");e(window).resize(function(){var r;var i=e(n).parent().innerWidth();if(i>768){r=3}else if(i>480){r=2}else{r=1}e(n).find("li").css("width",e(n).outerWidth()/r);var o=e(n).find("li").map(function(){return e(this).height()}).get();e(n).find(".wrapper").css("height",Math.max.apply(null,o)+20);e(n).find("ul").animate({left:"-"+e(n).find("ul").children("li").eq(s).position().left},t.speed,"swing")})}function c(e){setInterval(function(){h("next",e)},t.delay)}function h(n,r){if(!o){switch(n){case"next":if(s<e(r).find("li").length-1){switch(t.tickerMode){case"mini":e(r).find("ul").animate({left:"-"+(e(r).find("ul").children("li").eq(s+1).position().left-e(r).find(".csTicker__title").outerWidth())},t.speed,"swing");break;case"horizontal":e(r).find("ul").animate({left:"-"+e(r).find("ul").children("li").eq(s+1).position().left},t.speed,"swing");break;default:e(r).find("ul").animate({top:"-"+(e(r).find("ul").children("li").eq(s+1).position().top-e(r).find(".csTicker__title").outerHeight())},t.speed,"swing");break}s++}else{switch(t.tickerMode){case"mini":e(r).find("ul").animate({left:"-"+(e(r).find("ul").children("li").eq(0).position().left-e(r).find(".csTicker__title").outerWidth())},t.speed,"swing");break;case"horizontal":e(r).find("ul").animate({left:"-"+e(r).find("ul").children("li").eq(0).position().left},t.speed,"swing");break;default:e(r).find("ul").animate({top:"-"+(e(r).find("ul").children("li").eq(0).position().top-e(r).find(".csTicker__title").outerHeight())},t.speed,"swing");break}s=0}break;case"prev":if(s>0){switch(t.tickerMode){case"mini":e(r).find("ul").animate({left:"-"+(e(r).find("ul").children("li").eq(s-1).position().left-e(r).find(".csTicker__title").outerWidth())},t.speed,"swing");break;case"horizontal":e(r).find("ul").animate({left:"-"+e(r).find("ul").children("li").eq(s-1).position().left},t.speed,"swing");break;default:e(r).find("ul").animate({top:"-"+(e(r).find("ul").children("li").eq(s-1).position().top-e(r).find(".csTicker__title").outerHeight())},t.speed,"swing");break}s--}else{switch(t.tickerMode){case"mini":e(r).find("ul").animate({left:"-"+(e(r).find("ul").children("li").eq(e(r).find("ul").children("li").length-1).position().left-e(r).find(".csTicker__title").outerWidth())},t.speed,"swing");break;case"horizontal":e(r).find("ul").animate({left:"-"+e(r).find("ul").children("li").eq(e(r).find("ul").children("li").length-1).position().left},t.speed,"swing");break;default:e(r).find("ul").animate({top:"-"+(e(r).find("ul").children("li").eq(e(r).find("ul").children("li").length-1).position().top-e(r).find(".csTicker__title").outerHeight())},t.speed,"swing");break}s=0}break}}}var n={tickerMode:"vertical",customCSS:false,delay:5e3,speed:300,autoAnimate:true,buttons:true,highlightFeatured:true,stickyFeature:false,tickerTitle:false,contentFeed:false,feedCount:10,truncateAt:100,linkTarget:"_blank",addEllipsis:false,pauseOnHover:true,backgroundColour:false,titleColour:false,titleTextColour:false};var t=e.extend({},n,t);var r;var i=e(this).attr("id");var s=0;var o=false;if(t.customCSS){e("<link/>",{rel:"stylesheet",type:"text/css",href:customCSS}).appendTo("head")}var u=this;if(t.contentFeed){var a;e.ajax({type:"GET",url:document.location.protocol+"//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=1000&callback=?&q="+encodeURIComponent(t.contentFeed),dataType:"json",error:function(){},success:function(n){a=n.responseData.feed.entries;var r="<ul>";e(a).each(function(){var n=e(this).html();r+="<li>";if(e(this).data("img")){r+='<div class="col"><img src="'+e(this).attr("img")+'"/>';r+='</div><div class="col">'}r+='<p class="h3"><a target="'+t.linkTarget+'" href="'+e(this).attr("link")+'">'+e(this).attr("title")+"</a></p>";if(t.truncateAt){var i=e(this).attr("contentSnippet").substr(0,t.truncateAt);i=i.substr(0,Math.min(i).length,i.lastIndexOf(" "))}else{var i=e(this).attr("contentSnippet")}if(t.addEllipsis){i+="..."}r+="<p>"+i+"</p>";r+='<p class="small">'+e(this).attr("author")+" - "+e(this).attr("publishedDate")+"</p>";if(e(this).data("img")){r+="</div>"}r+="</li>"});e(u).append(r+"</ul>").find(".csTicker__spinner").remove();f(u)}});e(this).append('<div class="csTicker__spinner"><img src="img/spinner.gif" /></div>')}if(t.tickerTitle){e(this).prepend('<div class="csTicker__title">'+t.tickerTitle+"</div>")}e(this).find("ul").wrap('<div class="wrapper"></div>');if(t.buttons){e(this).prepend('<div class="csTicker__buttons"><div class="buttons__prev-button"></div><div class="buttons__next-button"></div></div>')}if(!t.contentFeed){e(this).find("li").each(function(){var n=e(this).html();if(t.highlightFeatured&&e(this).data("featured")==true){e(this).addClass("featured")}var r="";if(e(this).data("img")){r+='<div class="col">';r+='<img src="'+e(this).data("img")+'"/>';r+='</div><div class="col">'}if(e(this).data("title")){r+='<p class="h3"><a target="'+t.linkTarget+'" href="'+e(this).data("link")+'">'+e(this).data("title")+"</a></p>"}if(t.truncateAt){var i=n.substr(0,t.truncateAt);i=i.substr(0,Math.min(i).length,i.lastIndexOf(" "))}else{var i=n}if(t.addEllipsis){i+="..."}r+="<p>"+i+"</p>";if(e(this).data("meta")){r+='<p class="small">'+e(this).data("meta")+"</p>"}if(e(this).data("img")){r+="</div>"}e(this).empty().append(r)})}e(this).addClass("csTicker");switch(t.tickerMode){case"horizontal":e(this).addClass("csTicker--horizontal");l(this);break;case"mini":e(this).addClass("csTicker--mini");f(this);break;case"grid":e(this).addClass("csTicker--grid");break;default:break}if(t.backgroundColour){e(this).css("background",t.backgroundColour)}if(t.titleColour){e(this).find(".csTicker__title").css("background",t.titleColour)}if(t.titleTextColour){e(this).find(".csTicker__title").css("color",t.titleTextColour)}if(t.pauseOnHover){e(u).find("ul").mouseenter(function(){o=true}).mouseleave(function(){o=false})}return this.each(function(){var n=e(this);if(t.autoAnimate){c(n)}if(t.buttons){e(this).find(".buttons__prev-button").click(function(){h("prev",n)});e(this).find(".buttons__next-button").click(function(){h("next",n)})}})}})(jQuery);  $('.demo4').csTicker({
				contentFeed: 'http://feeds.gawker.com/gizmodo/full', 
				tickerTitle: 'Mini New Feed', 
				tickerMode: 'mini', 
				buttons: false, 
				speed: 600
			}); 
              
            
!
999px

Console