Commit f75337da authored by seotts's avatar seotts

preload spinner image

parent cf9cbdf3
...@@ -4,6 +4,7 @@ const React = require('react'); ...@@ -4,6 +4,7 @@ const React = require('react');
const Video = require('../video/video.jsx'); const Video = require('../video/video.jsx');
const Spinner = require('../spinner/spinner.jsx'); const Spinner = require('../spinner/spinner.jsx');
const classNames = require('classnames');
require('./video-preview.scss'); require('./video-preview.scss');
...@@ -52,6 +53,10 @@ class VideoPreview extends React.Component { ...@@ -52,6 +53,10 @@ class VideoPreview extends React.Component {
className="video-thumbnail" className="video-thumbnail"
onClick={this.handleShowVideo} onClick={this.handleShowVideo}
> >
<img
className={classNames('loading-spinner', 'hidden-spinner')}
src="/svgs/modal/spinner-white.svg"
/>
<img <img
src={this.props.thumbnail} src={this.props.thumbnail}
style={{ style={{
......
...@@ -36,6 +36,10 @@ ...@@ -36,6 +36,10 @@
bottom: 0; bottom: 0;
} }
.hidden-spinner {
visibility: hidden;
}
.spinner-video-container { .spinner-video-container {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment