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.

              <link href="https://fonts.googleapis.com/css?family=Cairo:200,400,600,900" rel="stylesheet">

<div class="container">
  <img class="pic" src="https://bixet.tech/wp-content/uploads/2017/09/Apple-Special-Event-2017.png" alt="Apple Special Event 2017">
  <h1 id="head">مؤتمر العام - لسنة 2017<br>أكثر حدث منتظر منذ <strong>10 أعوام</strong><br>... يبدأ خلال</h1>
  <ul dir="rtl">
    <li><span id="days"></span>يوم</li>
    <li><span id="hours"></span>ساعة</li>
    <li><span id="minutes"></span>دقيقة</li>
    <li><span id="seconds"></span>ثانية</li>
  <p id="head">(GMT+3) توقيت مدينة الرياض، المملكة العربية السعودية</p>
  <p><br><a href="https://www.apple.com/apple-events/assets/event.ics">أضف الحدث لتقويمك الخاص</a> <span>أو</span> <a href="https://www.apple.com/apple-events/september-2017/">شاهد العرض الحي</a></p>
              * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

body {
  background-color: #18ECB9;

.container {
  color: #3f3f3f;
  text-align: center;

h1 {
  font-family: 'Cairo';
  font-size: 30px;
  font-weight: 600;

p {
  font-family: 'Cairo';
  font-size: 15px;
  font-weight: 600;

p span {

li {
  font-family: 'Cairo';
  font-weight: 400;
  color: #1770ED;
  display: inline-block;
  font-size: 20px;
  list-style-type: none;
  padding: 10px;
  text-align: center;
  text-transform: uppercase;

li span {
  font-family: 'Cairo';
  font-weight: 900;
  color: #EC184B;
  display: block;
  font-size: 55px;

a {
  font-family: 'Cairo';
  font-weight: 200;
  color: #EC184B;
  font-size: 15px;
  text-decoration: none;

a:hover {
  color: #3f3f3f;

.pic {
    width: 150px;
    padding: 5px;
    margin-bottom: 10px;
              const second = 1000,
      minute = second * 60,
      hour = minute * 60,
      day = hour * 24;

let countDown = new Date('Sep 12, 2017 20:00:00').getTime(),
    x = setInterval(function() {

      let now = new Date().getTime(),
          distance = countDown - now;

      document.getElementById('days').innerHTML = Math.floor(distance / (day)),
        document.getElementById('hours').innerHTML = Math.floor((distance % (day)) / (hour)),
        document.getElementById('minutes').innerHTML = Math.floor((distance % (hour)) / (minute)),
        document.getElementById('seconds').innerHTML = Math.floor((distance % (minute)) / second);
      //do something later when date is reached
      if (distance < 0) {
        "S MY BIRTHDAY!";

    }, second)
🕑 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 ..................