Skip to content

Commit

Permalink
css scale3d used, readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitk05 committed Mar 3, 2019
1 parent c225a8c commit d13a404
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![NPM](https://img.shields.io/npm/v/react-insta-stories.svg)](https://www.npmjs.com/package/react-insta-stories) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

<img src="https://i.imgur.com/wJQZGSr.gif" width="300px" alt="Demo">
![Demo screenshot](https://i.imgur.com/Twvjxp5.png)

## Install

Expand Down
4 changes: 0 additions & 4 deletions src/components/Progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ const styles = {
maxWidth: '100%',
background: '#555',
margin: 2
},
overlay: {
height: '100%',
background: 'white'
}
}

Expand Down
28 changes: 26 additions & 2 deletions src/styles.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,33 @@
.inner {
background: #fff;
height: 100%;
max-width: 100%;
transform-origin: center left;

-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
backface-visibility: hidden;

-webkit-perspective: 1000;
-moz-perspective: 1000;
-ms-perspective: 1000;
perspective: 1000;
}

@keyframes slidein {
from { width: 0 }
to { width: 100%; }
from {
-webkit-transform: scale3d(0, 1, 1);
-moz-transform: scale3d(0, 1, 1);
-ms-transform: scale3d(0, 1, 1);
-o-transform: scale3d(0, 1, 1);
transform: scale3d(0, 1, 1);
}
to {
-webkit-transform: scale3d(1, 1, 1);
-moz-transform: scale3d(1, 1, 1);
-ms-transform: scale3d(1, 1, 1);
-o-transform: scale3d(1, 1, 1);
transform: scale3d(1, 1, 1);
}
}

0 comments on commit d13a404

Please sign in to comment.