<commit_before>@import "../styleguide_demo_bp";
@import "../card/card";
@import "../shadow/shadow";
@import "animation";

.preview-block {
  height: 200px;
  padding: 0;
}

.container {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  text-align: center;
}

.foreground {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
}

.background {
  line-height: 200px;
  z-index: -100;
}

// Outside the view, on the left.
// We leave the view when moving to this state, so we use fast-out-linear-in.
.position-1 {
  left: calc(-102px);
  @include material-animation-fast-out-linear-in();
}

// Left side.
// We enter the view when moving to this state, so we use linear-out-slow-in.
.position-2 {
  left: 20px;
  @include material-animation-linear-out-slow-in();
}

// Right side.
// We're always visible when moving to this state, so we use default.
.position-3 {
  left: calc(100% - 120px);
  @include material-animation-default();
}

// Outside the view, on the right.
// We leave the view when moving to this state, so we use fast-out-linear-in.
.position-4 {
  left: calc(100% + 2px);
  @include material-animation-fast-out-linear-in();
}

// Right side.
// We enter the view when moving to this state, so we use linear-out-slow-in.
.position-5 {
  left: calc(100% - 120px);
  @include material-animation-linear-out-slow-in();
}

// Left side.
// We're always visible when moving to this state, so we use default.
.position-6 {
  left: 20px;
  @include material-animation-default();
}

.PaperCard {
  background-color: red;
  border-radius: 2px;
  display: block;
  height: 100px;
  width: 100px;
  position: absolute;
  top: 50px;
  transition-property: left;
}<commit_msg>Modifying animation demo so it works in IE. Changes were needed because IE doesn't support calc() with CSS transitions.<commit_after>@import "../styleguide_demo_bp";
@import "../card/card";
@import "../shadow/shadow";
@import "animation";

.preview-block {
  height: 200px;
  padding: 0;
  background: none;
}

.container {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  width: 300px;
  height: 100%;
  text-align: center;
  background-color: #ddd;
}

.foreground {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
}

.background {
  line-height: 200px;
  z-index: -100;
}

// Outside the view, on the left.
// We leave the view when moving to this state, so we use fast-out-linear-in.
.position-1 {
  left: -102px;
  @include material-animation-fast-out-linear-in();
}

// Left side.
// We enter the view when moving to this state, so we use linear-out-slow-in.
.position-2 {
  left: 20px;
  @include material-animation-linear-out-slow-in();
}

// Right side.
// We're always visible when moving to this state, so we use default.
.position-3 {
  left: 180px;
  @include material-animation-default();
}

// Outside the view, on the right.
// We leave the view when moving to this state, so we use fast-out-linear-in.
.position-4 {
  left: 302px;
  @include material-animation-fast-out-linear-in();
}

// Right side.
// We enter the view when moving to this state, so we use linear-out-slow-in.
.position-5 {
  left: 180px;
  @include material-animation-linear-out-slow-in();
}

// Left side.
// We're always visible when moving to this state, so we use default.
.position-6 {
  left: 20px;
  @include material-animation-default();
}

.PaperCard {
  background-color: red;
  border-radius: 2px;
  display: block;
  height: 100px;
  width: 100px;
  position: absolute;
  top: 50px;
  transition-property: left;
}
{'fraction_non_alphanumeric': 0.1445054945054945, 'fraction_numerical': 0.03489010989010989, 'mean_word_length': 3.17545871559633, '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': '4103464', 'n_tokens_mistral': 1373, 'n_tokens_neox': 1252, 'n_words': 403}