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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

              <div id="panel" class="oj-margin" style="border: 1px solid; max-width: 300px;">
  <div id="header" class="oj-flex oj-panel oj-flex-bar">
    <div class="oj-flex-start oj-padding-horizontal">Title Bar</div>
    <div class="oj-flex-item"></div>
    <div class="oj-flex-end oj-panel-alt1">
      <i id="min-max-icon" class="fa oj-padding-horizontal hoverable" data-bind="click: collapse,
						css: {'fa-chevron-circle-down': collapsed(),
      <i class="hoverable fa fa-close oj-padding-horizontal " data-bind="click: close"></i>
  <div id="collapsableContent" class="oj-padding">
              // alta css and font-awesome is include through settings

.hoverable:hover {
  background-color: rgba(0, 0, 0, 0.3);

              require(['knockout', 'ojs/ojcore', 'jquery',
  'knockout.punches', 'ojs/ojknockout'
], function(ko, oj, $) {
  'use strict';

  function DemoViewModel() {
    var self = this;
    self.val = "I'm going to be collapsed, I have some text... ";
    self.collapsed = ko.observable(false);

    self.collapse = function collapse(event) {

    self.close = function collapse(event) {
  $(document).ready(function() {
    ko.applyBindings(new DemoViewModel());
Loading ..................