JSFiddle - React, Tailwind, and code Playground

by pleinx

HTML

<section class="default">
  <label>Default <strong>transform:scale</strong></label>
  <img src="https://www.thomann.de/pics/images/logos/thomann-cyan-white.svg">
</section>

<section class="scale3d">
  <label>Only <strong>transform:scale3d</strong></label>
  <img src="https://www.thomann.de/pics/images/logos/thomann-cyan-white.svg">
</section>

<section class="with-filter">
  <label>
    With <strong>transform:scale3d</strong> + <strong>filter:none</strong>
  </label> 
  <img src="https://www.thomann.de/pics/images/logos/thomann-cyan-white.svg">
</section>

<section class="with-gpu">
  <label>
    With <strong>transform:scale3d</strong> + <strong>filter:none</strong>
  </label>
  <img src="https://www.thomann.de/pics/images/logos/thomann-cyan-white.svg">
</section>

SCSS

html, body {
  height: 100%;
  width: 100%;
  font-family: Arial, Verdana, sans-serif;
}

body {
  padding: 0;
  margin: 0;
}

section, body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: wrap row;
}

section {
  background: #272727;
  padding: 30px;
  width: 50%;
  margin: 10px 0;
  flex-flow: wrap column;
  
  label {
    color: #fff;
    display: block;
    font-size: 15px;
    padding: 10px;
  }
}

section.default {
  img:hover {
    transform: scale(2);
  }
}

section.with-filter {
  img {
    filter: none; 
    -webkit-filter: blur(0px); 
    -moz-filter: blur(0px); 
    -ms-filter: blur(0px);
    filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='0');
  }
}

section.with-gpu {
  img {
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1, 1);
    
    &:hover {
      -webkit-transform: translateZ(0) scale(2, 2);
    }
  }
}

section.scale3d, section.with-filter {
  img {
      &:hover {
      transform:scale3d(2,2,2);
    }
  }
}

img {
  width: 150px;
  height: 29px;
  transition: transform 300ms ease-in;
}