cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

              <div class="karaoke-caption">
Современная техника – это инновационные технологии. Они эффективны на мероприятиях, где необходимо произвести особенно яркое впечатление. Инновационные технологии остаются в памяти надолго и прекрасно выполняют образовательные функции.

              @import "bourbon";

$color1: #AAA;
$color2: #555;

body {
  background-color: #000;

@include keyframes(pulse) {
  0% {
    color: $color1;

  50% {
   color: #FFF;

  100% {
   color: $color1;

.karaoke-caption {
    padding-top: 30px;
    text-align: center;
    font-size: 20pt;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-weight: 300;
  span {
    color: $color2;
    &.highlighted {
      color: #999;
        @include animation(pulse 0.3s ease-out);

              nextWord = ->
  $("#p" + cc).addClass "highlighted"
  return  if cc > fulltext.length - 1
  window.setTimeout nextWord, fulltext[cc - 1][1]
textBody = $('.karaoke-caption').text()
words = textBody.split(' ')
fulltext = []
$.each words, (i) ->
  word = words[i]
  duration = word.length * 50
  punctuationAdjustedDuration = (if word.indexOf(',') < 0 then duration else (duration + 600))
  fulltext.push([word, punctuationAdjustedDuration])
text = ""
$.each fulltext, (a, b) ->
  text += "<span id='p" + a + "'>" + b[0] + "</span> "

$(".karaoke-caption").html text
cc = 0

cc = 0
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................