JSFiddle - React, Tailwind, and code Playground

HTML

<div id="full-width-slider" class="royalSlider heroSlider rsMinW rsDefault">
  <div class="rsContent">
    <img class="rsImg" src="https://www.w3schools.com/w3images/fjords.jpg" alt="">
    <div class="infoBlock infoBlockLeftBlack rsABlock" data-fade-effect="" data-move-offset="100" data-move-effect="top" data-speed="200">
      <a href="#" class="infox">X</a>
      <div class="minus7">
      <h4>Nice picture</h4>
      <p>This is the info about it. It´s nice, short and easy to read.</p>
      </div>
    </div>
  </div>

CSS

html, body {
      width: 100%;
      height: 100%;
	  margin: 0;
	  padding: 0;
	  overflow:hidden
}

.royalSlider {
	width: 100%;
	height: auto;
	position: relative;
	direction: ltr;
}
.royalSlider > * {
	float: left;
}

.rsContent {
	width: 100%;
	height: 100%;
	position: relative;
}

.rsABlock {
	left: 0;
	/*top: 0;*/
	position: absolute;
	z-index: 15;
	
}

img.rsImg {
	max-width: none;
}

#full-width-slider {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0; /* height of thumbs (if not required set to 0) */
    height: auto !important; /* optionally add !important for WP version */
    width: auto;
}
.infoBlock {
  position: absolute;
  /*top: 30px;*/
  bottom: 0px;
  right: 30px;
  left: auto;
  max-width: 25%;
  padding-bottom: 0;
  background: #FFF;
  background: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  padding: 20px;
}
.infoBlockLeftBlack {
  color: #FFF;
  background: #000;
  background: rgba(0,0,0,0.75);
  left: 75px;
  right: auto;
}
.infoBlock h4 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  padding-bottom: 3px;
}
.infoBlock p {
  font-size: 14px;
  /*margin: 4px 0 0;*/
  margin-top: 1em;
}
.infoBlock a {
  color: #FFF;
  text-decoration: underline;
}  
    .minus7 {
  -ms-transform: rotate(-10deg); /* IE 9 */
  -webkit-transform: rotate(-10deg); /* Chrome, Safari, Opera */
  transform: rotate(-10deg) !important;
    margin-left: 0.5em;
	  }
  
  .infoBlock {
	  bottom: -20px;
	  padding-top: 50px;
	  padding-bottom: 100px;
  -ms-transform: rotate(10deg); /* IE 9 */
  -webkit-transform: rotate(10deg); /* Chrome, Safari, Opera */
  transform: rotate(10deg) !important;
  }
  
  .infox {
	  position: absolute;
	  bottom: -40px;
	  width: 50px;
	  height: 90px;
	  background-color: grey;
	  left: 0px;
	  z-index: 50;
	  }
  
  .pohyb {
   background-color: transparent;

  }
  
   .pohyb h4 {
    visibility: hidden;
  }
  
   .pohyb p {
    visibility: hidden;
  }

JavaScript

$( ".infox" ).click(function() {
  $( ".infoBlock" ).toggleClass("pohyb");
});