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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <title>AniJS Notification App</title>
<head>
    <link rel="stylesheet" href="https://anijs.github.io/lib/anicollection/anicollection.css" />

</head>
<body>
  
  <!-- The example -->
 <div id="demo-notification">
    <div id="notification">
      <div class="toolbar">
        <div class="delete">
          <i class="fa fa-trash"></i>
        </div>
        <div class="app-icon load-more">
          <i class="fa fa-bell"></i>
        </div>
      </div>
      <div class="notification-container list">
        <div class="item note note-success">
          <div class="item-image note-icon">
            <i class="fa fa-heart"></i>
          </div>
          <div class="item-body note-text">
            Don't close me (;
          </div>
          <a href="#" class="note-close">
            <i class="fa fa-close"></i>
          </a>
        </div>
        <div class="item note note-secondary">
          <div class="item-image note-icon">
            <i class="fa fa-twitter"></i>
          </div>
          <div class="item-body note-text">
            Tim Cook followed you!!!
          </div>
          <a href="#" class="note-close">
            <i class="fa fa-close"></i>
          </a>
        </div>
        <div class="item note">
          <div class="item-image note-icon">
            <i class="fa fa-facebook-square"></i>
          </div>
          <div class="item-body note-text">
            Mark Zuckerberg invited you to play Candy Crush
          </div>
          <a href="#" class="note-close">
            <i class="fa fa-close"></i>
          </a>
        </div>
      </div>
      <div class="read-more load-more">
        <i class="fa fa-bell"></i>
        Read More
      </div>
    </div>
  </div>

  <!-- hidden notification item template -->
  <div class="templates hidden">
    <div class="item note note-gray cloned hidden">
      <div class="item-image note-icon">
        <i class="fa fa-coffee"></i>
      </div>
      <div class="item-body note-text">
        Lorem ipsum dolor
      </div>
      <a href="#" class="note-close">
        <i class="fa fa-close"></i>
      </a>
    </div>
  </div>

  <!-- The AniJS language -->
  <input type="hidden" data-anijs="
    if:click, on: .note-close, do: fadeOut animated, to: $parent target, after: $remove;

    if:click, on: .load-more, do: $clone .templates .cloned | 3, to: .list, after: emit cepv.dummyEvent;

    if:dummyEvent, on: $cepv, do: $addClass fadeIn animated,  to: $children .list | .cloned, after: $removeClass cloned hidden;

    if:click, on: .delete ,before: emit cepv.fooEvent, do: $remove, to: $children .list | div;
    " 
  > 
  <!-- End example -->

 <div class="sentences center" data-anijs="if:mouseover, do: bounce animated, to: .learn">
   <p>
     *
    <span class="anijs-if anijs-reserved-word">If</span>
    <span>click,</span>
    <span class="anijs-on anijs-reserved-word">On</span>
    <span>.note-close,</span>
    <span class="anijs-do anijs-reserved-word">Do</span>
    <span class="do-value">$remove</span>
    <span class="anijs-to anijs-reserved-word">To</span>
    <span class="to-value">$parent target,</span>
     <br><br>
     *
     <span class="anijs-if anijs-reserved-word">If</span>
    <span>click,</span>
    <span class="anijs-on anijs-reserved-word">On</span>
    <span>.load-more,</span>
    <span class="anijs-do anijs-reserved-word">Do</span>
    <span class="do-value">$clone .templates .cloned | 3</span>
    <span class="anijs-to anijs-reserved-word">To</span>
    <span class="to-value">.container</span>
       <br><br>
     *
     <span class="anijs-if anijs-reserved-word">If</span>
    <span>click,</span>
    <span class="anijs-on anijs-reserved-word">On</span>
    <span>.delete,</span>
    <span class="anijs-do anijs-reserved-word">Do</span>
    <span class="do-value">$remove</span>
    <span class="anijs-to anijs-reserved-word">To</span>
    <span class="to-value">$children .list | div</span>
   </p>
 
 </div> 
 
<footer>
  <div class="pull-left margin-left">
    <a class="pure-button primary" href="https://codepen.io/darielnoel/pen/FhCvr?editors=110" target="_blank">
       <i class="fa fa-edit"></i> Edit
    </a>
    <a class="pure-button primary" href="https://codepen.io/darielnoel/share/zip/FhCvr/">
       <i class="fa fa-download"></i> Download
    </a>   
  </div>
  <span class="discover" data-anijs="if: mouseover,on: .tab-bar, do: bounceIn animated, after: $holdAnimClass" >
    Made using            <img src="https://anijs.github.io/assets/img/favicon.png" alt="" />
    <a href="https://anijs.github.io/" target="_blanck">AniJS</a>
  </span>
  <div class="pull-right margin-right">
   <a class="pure-button primary" href="https://codepen.io/collection/DFmkq" target="_blanck">
   <i class="fa fa-external-link"></i> More!!!
    </a> 
   </div>
 </footer>
 
  <div class="sticky learn">
    <h4>
      <i class="fa fa-mortar-board"></i>
      Learn AniJS
    </h4>
    <ul>
      <li><a href="https://github.com/anijs/anijs/wiki/Sentence-Definitions#if" target="_blanck">click</a></li>
      <li><a href="https://github.com/anijs/anijs/wiki/Refer-to-the-current-element" target="_blanck">target</a></li>
      <li><a href="https://github.com/anijs/anijs/wiki/Clone-and-remove#remove" target="_blanck">$remove</a></li>
      <li><a href="https://github.com/anijs/anijs/wiki/Clone-and-remove#clone" target="_blanck">$clone</a></li>
      <li><a href="https://github.com/anijs/anijs/wiki/Selecting-html-elements#parent" target="_blanck">$parent</a></li>
      <li><a href="https://github.com/anijs/anijs/wiki/Selecting-html-elements#children" target="_blanck">$children</a></li>
    </ul>  
  </div>
  

<script src="https://anijs.github.io/lib/anijs/anijs.js"></script>
<script src="https://anijs.github.io/lib/anijs/helpers/dom/anijs-helper-dom.js"></script>
 </body>

            
          
!
            
              /*The CSS example*/
#demo-notification{
  width: 20%;
  margin: 0 auto;
  font-family: helvetica;
  min-width: 320px;
  font-size: 0.7em;
  margin-top: 50px;
}

/* notification app body*/
#notification{
  width: 100%;
  height: 400px;
  border: 1px solid #ddd;
  position: relative;
}

/* toolbar */
.toolbar{
  width: 100%;
  height: 40px;
  background-color: #f5f5f5;
  position: relative;
}

/* notification items container */
.notification-container{
  position: relative;
  overflow: auto;
  width: 100%;
  height: 360px;
}

/* trash icon */
.delete{
  float: right;
  padding: 8px 8px 8px 16px;
  font-size: 21px;
  color: #858585;
  cursor: pointer;
  transition: all 0.25s;
  width: 24px;
}

.delete:hover{
  color: #444444;
}

/* bell app icon*/
.app-icon{
  float: left;
  padding: 8px 8px 8px 16px;
  font-size: 21px;
  color: #858585;
  cursor: pointer;
  transition: all 0.25s;
  width: 24px;
}


.app-icon:hover{
  color: #444444;
}

/* read more notifications button */
.read-more{
  position: absolute;
  bottom: 0px;
  margin: 0 auto;
  z-index: 60;
  width: 100%;
  text-align: center;
  padding: 7px 0px;
  background: #f5f5f5;
  color: #858585;
  cursor: pointer;
  transition: all 0.25s;
}

.read-more:hover{
  color: white;
  background-color: #1F8DD6;  
}

/* hidden utility */
.hidden{
  display: none;
}


.big-on-hover {
  transform: scale(1, 1);
}
.big-on-hover:hover {
  transform: scale(1.2, 1.2);
}

/**
* Reusable single-direction margin declaration
*/
.margin, p, .item {
  margin-top: 0;
  margin-bottom: -1px;
}
.margin:last-child, p:last-child, .item:last-child {
  margin-bottom: 0;
}

.item {
  display: table;
  transition: all 0.25s;
}

.item:hover{
  cursor: pointer;
}

.item-image,
.item-body {
  display: table-cell;
  vertical-align: middle;
}
.item-top .item-image, .item-top
.item-body {
  vertical-align: top;
}
.item-bottom .item-image, .item-bottom
.item-body {
  vertical-align: bottom;
}

.item-image {
  padding-right: 24px;
}
.item-image > img {
  display: block;
  max-width: none;
}
.item-rev .item-image {
  padding-right: 0;
  padding-left: 24px;
}

.item-body {
  width: 100%;
}

/**
* Notification Styles
*/
.note {
  position: relative;
  overflow: hidden;
  color: white;
  border: solid 1px #ddd;
  background: white;
  z-index: 3;
}

.note-secondary {
  background-color: white;
  border-color: #ddd;
  z-index: 4;
}

.note-success {
  background-color: white;
  border-color:#ddd;
  z-index: 5;
}

.note-gray {
  background-color: white;
  border-color:#ddd;
  z-index: 6;
}

.note-warning {
  background-color: #f39c12;
}

.note-error {
  background-color: #e74c3c;
}

.note-info {
  background-color: #3498db;
}

.note-icon,
.note-text {
  padding: 10px;
  color: white;
}

.note-icon {
  min-width: 24px;
  text-align: center;
  font-size: 32px;
  font-size: 1.4rem;
  background-color: #FBB44C;
}

.note-secondary .note-icon{
  background-color: #1F8DD6;  
}

.note-success .note-icon{
  background-color: #FC797A;  
}

.note-gray .note-icon{
  background-color: #a3a3a3;  
}

.note-text {
  padding-right: 48px;
  color: #FBB44C; 
}

.note-secondary .note-text{
  color: #1F8DD6;   
}

.note-success .note-text{
  color: #FC797A;   
}

.note-gray .note-text{
  color: #a3a3a3;  
}

.note-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  line-height: 30px;
  font-size: 19px;
  text-align: center;
  color: #FBB44C;
  background-color: none;
  transition: all 0.25s;
}

.note-secondary .note-close{
  color: #1F8DD6;   
}

.note-success .note-close{
  color: #FC797A;   
}

.note-gray .note-close{
  color:#a3a3a3;
}


.note-close:hover {
  background-color:#FBB44C;
  color:white;
}

.note-secondary .note-close:hover {
  background-color:#1F8DD6;
}

.note-success .note-close:hover {
  background-color:#FC797A;
}

.note-gray .note-close:hover{
  background-color:#a3a3a3;
}

.note:hover .note-close {
  opacity: 1;
}


/*End CSS example*/

/*Other CSS*/
body{
  font-family: helvetica;
  font-size: 1.5em;
  margin: 0px; 
}

body a{
  color: #4183c4;
}

.container{ 
   margin-top: 50px;
   min-width: 300px;
   width: 40%;
}

.center{
  display: block;
  margin-left: auto;
  margin-right: auto;
  position:relative;
}


footer {
  color: rgba(236, 222, 209, 1);
  text-align: center;
  background: #eee;
  position: fixed;
  width: 100%;
  bottom: 0px;
  padding: 10px 0px;
}

.sentences{
  color: #7f8c8d;
  font-size: 0.8em;
  padding: 20px 20px;
  background: red;
  min-width: 300px;
  background: #eee;
  display: table;
  border-radius: 5px;
  margin-top: 110px;
}

.anijs-reserved-word {
  font-size: 1em;
  font-weight: bolder;
}

.anijs-if {
color: #D14;
}

.anijs-on {
color: #008080;
}

.anijs-do {
  color: #D56100;
}

.anijs-to {
  color: #4188D2;
}

.margin-right{
    margin-right: 50px;
}

.margin-left{
    margin-left: 50px;
}

.sticky {
  background: #F6F6F6;
  color: #666;
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 0px 15px;
  font-size: 80%;
  font-style: italic;
  border-radius: 5px;
}

.sticky.left{
  top: 20px;
  left: 0px;
  right: inherit;
  padding: 20px;
  width: 200px;
  font-size: 0.7em;
  border-radius: 0px 10px 10px 0px;
}

.sticky.left h4{
  font-size: 150%;
  -webkit-margin-before: 0em;
  -webkit-margin-after: 0.33em;
  text-align: left;
}

.sticky h4{
  text-align: center;
}

.sticky ul{
  list-style-type: disc;
  color: #4183c4;
  font-size: 90%;
}

.sticky ul li{
  margin-bottom:10px;
}

.discover{
  margin-left: -5%;
  color: #7f8c8d;
  font-size: 80%;
}

.discover img{
  width: 16px;
  height: 16px;
}

.pure-button {
  display: inline-block;
  zoom: 1;
  line-height: normal;
  white-space: nowrap;
  vertical-align: baseline;
  text-align: center;
  cursor: pointer;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 100%;
  padding: 0.5em 1.5em 0.5em;
  color: #444;
  color: rgba(0, 0, 0, 0.80);
  border: 1px solid #999;
  border: none rgba(0, 0, 0, 0);
  background-color: #E6E6E6;
  text-decoration: none;
  border-radius: 2px;
  -webkit-transition: 0.1s linear -webkit-box-shadow;
  -moz-transition: 0.1s linear -moz-box-shadow;
  -ms-transition: 0.1s linear box-shadow;
  -o-transition: 0.1s linear box-shadow;
  transition: 0.1s linear box-shadow;
  padding: 0.4em 1em;
  border-radius: 5px;
  font-size: 80%;
}

.pure-button.primary {
  background-color: #1f8dd6;
  color: white;
}

.pure-button.secondary {
  background: rgb(66, 184, 221);
  color: white;
}

body{
  font-size: 1.2em;
}







            
          
!
999px
Loading ..................

Console