Commit f75337da authored by seotts's avatar seotts

preload spinner image

parent cf9cbdf3
......@@ -4,6 +4,7 @@ const React = require('react');
const Video = require('../video/video.jsx');
const Spinner = require('../spinner/spinner.jsx');
const classNames = require('classnames');
require('./video-preview.scss');
......@@ -52,6 +53,10 @@ class VideoPreview extends React.Component {
className="video-thumbnail"
onClick={this.handleShowVideo}
>
<img
className={classNames('loading-spinner', 'hidden-spinner')}
src="/svgs/modal/spinner-white.svg"
/>
<img
src={this.props.thumbnail}
style={{
......
......@@ -36,6 +36,10 @@
bottom: 0;
}
.hidden-spinner {
visibility: hidden;
}
.spinner-video-container {
width: 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