Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reimplemented example using CRA #94

Closed
wants to merge 3 commits into from

Conversation

stereobooster
Copy link

@stereobooster stereobooster commented May 28, 2017

Related:

It is possible to deploy this to gh-pages to have example online

Also tried relative path, but it fails facebook/create-react-app#1492

@stereobooster
Copy link
Author

Second commit addresses:

corresponding CSS

.LazyLoad .spinner {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -20px -20px 0 0;
  background-color: #fff;
  border-radius: 100%;
  -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
  animation: sk-scaleout 1.0s infinite ease-in-out;
}

.LazyLoad.is-errored .spinner,
.LazyLoad.is-loaded .spinner {
  opacity: 0;
}

@-webkit-keyframes sk-scaleout {
  0% { -webkit-transform: scale(0) }
  100% {
    -webkit-transform: scale(1.0);
    opacity: 0;
  }
}

@keyframes sk-scaleout {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
  } 100% {
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
    opacity: 0;
  }
}

.LazyLoad .offline {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/offline.svg') no-repeat center center;
  background-size: 100px 100px;
}

.LazyLoad.is-errored .offline {
  opacity: 1;
}

@stereobooster stereobooster force-pushed the cra-example branch 3 times, most recently from 0128f5b to 9ed78cf Compare May 29, 2017 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant