Pen Settings

HTML

CSS

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

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="list">
  <div class="list__item">
    <div class="list__wrap">
      <div class="list__icon">
        <img src="//i.imgur.com/OIdEH6u.png">
      </div>
      <div class="list__info">
        <div class="list__title">Система</div>
        <div class="list__des">Экран, звук, уведомление, питание</div>
      </div>
    </div>
  </div>
  <div class="list__item">
    <div class="list__wrap">
      <div class="list__icon">
        <img src="//i.imgur.com/IrFFOJU.png">
      </div>
      <div class="list__info">
        <div class="list__title">Устройства</div>
        <div class="list__des">Bluetooth, принтеры, мышь</div>
      </div>
    </div>
  </div>
  <div class="list__item">
    <div class="list__wrap">
      <div class="list__icon">
        <img src="//i.imgur.com/hJ4PM1D.png">
      </div>
      <div class="list__info">
        <div class="list__title">Телефон</div>
        <div class="list__des">Связать устройство с Android, iPhone</div>
      </div>
    </div>
  </div>
  <div class="list__item">
    <div class="list__wrap">
      <div class="list__icon">
        <img src="//i.imgur.com/5d2JslY.png">
      </div>
      <div class="list__info">
        <div class="list__title">Сеть и Интернет</div>
        <div class="list__des">Wi-Fi, режим "в самолете", VPN</div>
      </div>
    </div>
  </div>
  <div class="list__item">
    <div class="list__wrap">
      <div class="list__icon">
        <img src="//i.imgur.com/mTOeEGb.png">
      </div>
      <div class="list__info">
        <div class="list__title">Персонализация</div>
        <div class="list__des">Фон, экран блокировки, цвета</div>
      </div>
    </div>
  </div>
  <div class="list__item">
    <div class="list__wrap">
      <div class="list__icon">
        <img src="//i.imgur.com/WvgXQvU.png">
      </div>
      <div class="list__info">
        <div class="list__title">Прилодения</div>
        <div class="list__des">Удаление, значения по умолчанию, доп. компоненты</div>
      </div>
    </div>
  </div>
  <div class="list__item">
    <div class="list__wrap">
      <div class="list__icon">
        <img src="//i.imgur.com/2Qa0M8a.png">
      </div>
      <div class="list__info">
        <div class="list__title">Учетные записи</div>
        <div class="list__des">Учетные записи, эл. почта, синхронизация, работа, семья</div>
      </div>
    </div>
  </div>
  <div class="list__item">
    <div class="list__wrap">
      <div class="list__icon">
        <img src="//i.imgur.com/tdqEwrN.png">
      </div>
      <div class="list__info">
        <div class="list__title">Время и язык</div>
        <div class="list__des">Распознавание голоса, регион, дата</div>
      </div>
    </div>
  </div>
  <div class="list__item">
    <div class="list__wrap">
      <div class="list__icon">
        <img src="//i.imgur.com/8WeJfDL.png">
      </div>
      <div class="list__info">
        <div class="list__title">Игры</div>
        <div class="list__des">Xbox Game Bar, снимки, режим игры</div>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Segoe UI, SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  padding: 20px;
  box-sizing: border-box;
}

.list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  --bgp-x: 0;
  --bgp-y: 0;
}

.list__item {
  display: block;
  max-width: 265px;
	min-height: 6rem;
  background-color: transparent;
  background-image: radial-gradient(circle, rgba(255,255,255,.25), rgba(0,0,0,0) 50%, rgba(0,0,0,0));
  background-repeat: no-repeat;
  background-position: var(--bgp-x) var(--bgp-y);
  background-size: 256px 256px;
  background-attachment: fixed;
  padding: 1px;
  box-sizing: border-box;
}

.list__wrap {
  display: flex;
  flex-direction: row;
  min-height: 100%;
  padding: 10px;
  box-sizing: border-box;
  background-color: #000;
}

.list__item:hover {
  background-color: rgba(255,255,255,.25);
  background-image: radial-gradient(circle, rgba(255,255,255,.5), rgba(0,0,0,0) 50%, rgba(0,0,0,0));
}

.list__item:hover .list__wrap {
  background-color: #000;
  background-image: radial-gradient(circle, rgba(255,255,255,.15), rgba(0,0,0,0) 50%, rgba(0,0,0,0));
  background-repeat: no-repeat;
  background-position: var(--bgp-x) var(--bgp-y);
  background-size: 256px 256px;
  background-attachment: fixed;
}

.list__icon {
  display: block;
  min-width: 40px;
  width: 40px;
  margin-right: 20px;
}

.list__icon img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0;
}

.list__title {
  font-weight: 600;
}

.list__des {
  color: #999;
}

@media (max-width: 800px) {
  .list {grid-template-columns: repeat(2, 1fr);}
}

@media (max-width: 500px) {
  .list {grid-template-columns: 1fr;}
}
              
            
!

JS

              
                let list = document.querySelector('.list'),
		of = Number(window.getComputedStyle(list.querySelector('.list__item')).backgroundSize.split(' ')[0].replace(/\D+/gim, '')) / 2 || 0;
    
console.info(of);

document.addEventListener('mousemove', function(e) {
  list.style.cssText = `--bgp-x: ${e.clientX-of}px; --bgp-y: ${e.clientY-of}px;`;
})
              
            
!
999px

Console