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.

              <script type="text/javascript" src="//"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>

<div class="app" ng-app>
  <div ng-controller="filterValue">
    <h1>CSS<br>Filter <span class="filter-name">Invert</span></h1>
    <div class="filter-wrapper">
      <div class="content alpha"
        <img src="" />
        <div class="image-credit">
          image credit: <a href="">Jordan Pagels</a>
      <div class="content beta">
      <div class="filter-control">
        <label for="slider1">Value  :  {{filterVal}}%</label>
        <input type="range"
      <div class="filter-info">
          <li>FILTER : invert</li>

function filterValue($scope) {
  $scope.filterVal = 100;
              body {
  background: #272123;
  font-family: "omnes-pro";
  color: #E4F5ED;

h1 {
  width: 360px;
  margin: 24px auto 0;
  text-transform: uppercase;
  /* font-family: "tablet-gothic-compressed"; */
  font-weight: 100;
  line-height: 0.9em;

h1 span.filter-name {
  font-family: "futura-pt";
  font-weight: 800;
  font-size: 1em;

div.filter-wrapper {
  display: block;
  width: 360px;
  height: 100%;
  background: #120F11;
  margin: 0 auto;

div.content img {
  height: 320px;
  width: 320px;
  margin: 20px;

div.content div.image-credit {
	text-align: right;
  margin: -24px 20px 4px 0;
  font-size: 0.6em;
  color: rgba(197, 219, 209, 0.2);

.image-credit a {
  color: inherit;

div.filter-control {
  padding: 8px 20px;

div.filter-control label {
  border-left: 4px #272123 double;
  padding-left: 12px;

div.filter-info {
  border-top: 2px #272123 solid;

#slider1 {
  -webkit-appearance: none;
  background-color: #120F11;
  width: 200px;
  height: 10px;
  border: 1px #272123 solid;
  margin: 6px 12px 0 0;
  outline: 0;
  float: left;

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background-color: #120F11;
  border: 1px #76A19A solid;
  width: 14px;
  height: 14px;
🕑 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.