Code
<section class="section page-header bg--img bg--blend" style="background-image:url(https://cf-images.us-east-1.prod.boltdns.net/v1/static/1301119679001/dbdc87f3-63b9-4422-a2f3-da89bf430cec/ac3a2138-3b42-4dff-9489-faa02e06c50e/1280x720/match/image.jpg), linear-gradient(108deg, #3e5151 0%,#decba4 100%)">
<div class="video__banner">
<div class="brightcove-react-player-loader"></div>
<span class="video__banner-close" role="presentation">Close <i class="fas fa-times player-close"></i></span>
</div>
<div class="wrapper--1">
<div class="video__banner__text">
<div class="page-header__text">
<h1 class="heading--4">Chinese Corporate Credit Polarisation Persists Onshore Despite Liquidity Easing</h1>
<p>Credit polarisation among Chinese corporates is likely to persist in the onshore market, with net issuance by highly rated companies, mostly government-related entities (GREs) with stronger credit profiles, staying solid in 2H22, says Fitch Ratings. </p>
</div>
</div>
</div>
<img class="video__banner-play video__play" src="https://your.fitchratings.com/rs/732-CKH-767/images/play-button.png" alt="Play Video" style="width:auto;height:auto" role="presentation">
</section>
.video__banner {
position: absolute;
top: 0;
left: 0;
width: 100%;
max-width: 100%;
height: 100%;
overflow: hidden;
display: none;
}
.video__banner.active {
display: block;
background: var(--text-color);
z-index: 1003;
}
.video__banner .brightcove-react-player-loader {
position: relative;
width: 100%;
height: 100%;
}
.video__banner .brightcove-react-player-loader > div {
position: static !important;
}
.video__banner .brightcove-react-player-loader > div > div {
padding-top: 0 !important;
}
.video__banner .video-js,
.video__banner .vjs-tech {
right: initial !important;
bottom: initial !important;
-o-object-fit: initial;
object-fit: initial;
}
.video__banner .vjs-tech {
width: auto !important;
left: 50% !important;
transform: translateX(-50%);
/* iPhone 6 onwards */
}
@media only screen and (max-width: 480px) {
.video__banner .vjs-tech {
width: 100% !important;
height: auto !important;
top: 50% !important;
left: 0 !important;
transform: translateY(-50%);
}
}
.video__banner-close {
position: relative;
top: 4.7rem;
right: 2.4rem;
float: right;
font-size: var(--font-size-2);
font-weight: 900;
text-align: right;
text-transform: uppercase;
color: var(--inverted-text-color);
cursor: pointer;
z-index: 1;
}
.video__banner-close i {
position: relative;
top: 0.2rem;
margin-left: 1.2rem;
font-size: 1.8rem;
}
.video__banner__text {
position: absolute;
bottom: 4.8rem;
}
.video__play {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 11;
cursor: pointer;
}
/* Print */
@media print {
.video__banner__text {
position: static;
}
.video__banner-play {
display: none;
}
}
.duration-big-area {
bottom: 0.6rem;
display: inline-block;
margin-right: 0;
margin-top: 0;
position: absolute;
right: 0.8rem;
background: black;
color: #fff;
font-size: 0.9rem;
font-weight: bold;
padding: 1px 5px;
}
.duration-small-area {
bottom: 1.8rem;
display: inline-block;
margin-right: 0;
margin-top: 0;
position: absolute;
right: 2.8rem;
background: black;
color: #fff;
font-size: 0.9rem;
font-weight: bold;
padding: 1px 5px;
}
@import '../abstracts/_mixins';
.video {
&__banner {
position: absolute;
top: 0;
left: 0;
width: 100%;
max-width: 100%;
height: 100%;
overflow: hidden;
display: none;
&.active {
display: block;
background: var(--text-color);
z-index: 1003;
}
.brightcove-react-player-loader {
position: relative;
width: 100%;
height: 100%;
& > div {
position: static !important;
> div {
padding-top: 0 !important;
}
}
}
.video-js,
.vjs-tech {
right: initial !important;
bottom: initial !important;
object-fit: initial;
}
.vjs-tech {
width: auto !important;
left: 50% !important;
transform: translateX(-50%);
@include mq-4 {
width: 100% !important;
height: auto !important;
top: 50% !important;
left: 0 !important;
transform: translateY(-50%);
}
}
&-close {
position: relative;
top: 4.7rem;
right: 2.4rem;
float: right;
font-size: var(--font-size-2);
font-weight: 900;
text-align: right;
text-transform: uppercase;
color: var(--inverted-text-color);
cursor: pointer;
z-index: 1;
i {
position: relative;
top: 0.2rem;
margin-left: 1.2rem;
font-size: 1.8rem;
}
}
&__text {
position: absolute;
bottom: 4.8rem;
}
}
&__play {
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
z-index: 11;
cursor: pointer;
}
}
@include print {
.video__banner__text {
position: static;
}
.video__banner-play {
display: none;
}
}
.duration-big-area {
bottom: 0.6rem;
display: inline-block;
margin-right: 0;
margin-top: 0;
position: absolute;
right: 0.8rem;
background: black;
color: #fff;
font-size: 0.9rem;
font-weight: bold;
padding: 1px 5px;
}
.duration-small-area {
bottom: 1.8rem;
display: inline-block;
margin-right: 0;
margin-top: 0;
position: absolute;
right: 2.8rem;
background: black;
color: #fff;
font-size: 0.9rem;
font-weight: bold;
padding: 1px 5px;
}
// THIS CODE IS FOR VIDEO JS
jQuery(function ($) {
var pageHeaderVideo = videojs('pivot-video');
$('.video__play').click(function () {
$('.video__banner').addClass('active');
pageHeaderVideo.ready(function () {
pageHeaderVideo.play();
});
});
$('.video__banner-close').click(function () {
$('.video__banner').removeClass('active');
pageHeaderVideo.ready(function () {
pageHeaderVideo.pause();
});
});
pageHeaderVideo.ready(function () {
pageHeaderVideo.on("ended", function () {
$('.video__banner').removeClass('active');
pageHeaderVideo.currentTime(0);
});
});
});
Component Options
There are no options for this component.