<commit_before>.component {
  position: relative;
  overflow: hidden;
}

.image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  transition: opacity 1s;
}

.before {
  opacity: 1;
}

.enter {
  opacity: 0;
}

.placeholder {
  composes: image;
  z-index: 0;

  /* this is needed so Safari keeps sharp edges */
  transform: scale(1)
}<commit_msg>fix(progressive-img): remove flickering after opacity transition<commit_after>.component {
  position: relative;
  overflow: hidden;
}

.image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  transition: opacity 1s;
  transform: translateZ(0) scale(1);
}

.before {
  opacity: 1;
}

.enter {
  opacity: 0;
}

.placeholder {
  composes: image;
  z-index: 0;

  /* this is needed so Safari keeps sharp edges */
  transform: scale(1);
}
{'fraction_non_alphanumeric': 0.13838748495788206, 'fraction_numerical': 0.02888086642599278, 'mean_word_length': 3.202020202020202, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4020383', 'n_tokens_mistral': 328, 'n_tokens_neox': 302, 'n_words': 88}