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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              .viewport( class="contexto" )
  ons-page( ng-controller='ngC' )
    ons-toolbar( class="toolbar", modifier="material" )
      div( class="pl title center", ng-bind="titulo" )
        class="tarjeta p0"
          class="h2+ w2+ ml1"
          class="h2+ w2+ alinear-centro cursor-pointer"
              .boton DUPLICATE
              .boton SCHEDULE
              .boton DELETE
          class="p1+ mt1+"
        ) Nemo, velit maxime excepturi dolores, optio voluptates, molestiae quas labore explicabo facere at a voluptatibus qui totam voluptate deleniti quia consequatur quam?
  a( href="http://bappzi.com" target="_blank" )
    .bappzi bappzi
              @colorPrincipal: #FDFDFD;
@colorAcento: #2aD;
body {
  overflow: none;
  background-color: #222;
.contexto {
  margin-left: -180px;
  left:50%; top:1em;
  width: 360px;
  height: 640px;
  //crear clases aqui
  .toolbar {
    background-color: @colorPrincipal;
    .title {
      color: #222;
    height: 25em;
    transition: all .3s cubic-bezier(.65,.68,.34,1.42);
    top: 0;
    transition: all .3s ease;
    background-color: @colorAcento;
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
    z-index: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 50%;
    .contenedor {
      position: absolute;
      bottom:-1px; right:-1px;
      width: 0; height: 0;
      background-color:  @colorAcento;
      transition: all ease-out .35s;
      border-radius: 3000px 0 0 0;
    color: #FFF;
    text-align: center;
    margin-bottom: 1em;
    padding: .75em;
    width: 10em;
    outline: none !important;
    font-family: OpenSans,Roboto,Arial,'sans-serif';
    background-color: transparent;
    border: 1px solid #FFF;
    border-radius: 4px;
    transition: all ease .5s;
    &:hover, &:active {
      color: @colorAcento;
      background-color: #fff;
  z-index: 10;
  font-weight: bold;
  color: rgba(127,127,127,.35);
              var app = ons.bootstrap();
.controller('ngC', function($scope){
  $scope.titulo = "CSS-based Circular Reveal";
  $scope.accion = function(e){
    var $contenidoFab = $('.contenido-fab');
    var $contenedor = $('.contenedor-circular .contenedor');
    var max = ($('.contenedor-circular')[0].getBoundingClientRect().width*1.5)+'px';
    var $bFab = $('.bfab');
    var objClase={}, objClase2={}, objClase3={};
    if( $contenidoFab.hasClass('cerrar') ){
        objClase = {'top':'0','color':'#FFF'};
        objClase2 = {'background-color':'#2ad'};
        objClase3 = {'width':'0','height':'0'};
    } else {
        objClase = {'top':'-2.5em','color':'#169'};
        objClase2 = {'background-color':'#FFF'};
        objClase3 = {'width':max,'height':max};
🕑 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.