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.

              <div id="js-modal">
  <div class="modal">
    <div class="modal__content">
        src="https://goo.gl/qHXCm4" controls
        width="300" height="168"
      <!-- カスタムフィルターthousandSeparateを文字列'30682'に適用 -->
      <span class="views">Views: {{30682 | thousandSeparate}}</span>
              html, body {
  margin: 0;
  width: 100%; height: 100%;
  position: relative;

.modal {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10;
  background: rgba(0, 0, 0, .7);
  transform: translate3d(0, 0, 0);

.modal__content {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
.modal__content > * {
  display: block;
  position: relative;

.views {
  position: absolute; top: 16px; right: 16px;
  font: bold 12px/1 sans-serif;
  letter-spacing: .1em;
  color: #fff;

              // thousandSeparateという名前のカスタムフィルターを定義
Vue.filter('thousandSeparate', function(value) {
  // 対象の値を3桁ごとのカンマ区切りにして返す
  return value.toString().replace(/(\d)(?=(\d{3})+$)/g , '$1,');

new Vue({
  el: '#js-modal'
Loading ..................