I would like to draw a player's arrow on a video thumbnail to make it look like video.
The thumbnail's size is not always the same. It changes dynamically and this is what I also want to do with the arrow using css which I am not familiar with. The thumbail is appended on a span. Through css i am giving specific dimensions to span and automatically the thumbnail is adapted to it. I haven't managed to do the same with the arrow. The css code that I am using follows. The block that does not work properly is under .x1 a::before
span.x1 {
display:block;
height:30px;
width:30px;
}
.x1 img
{
width: 100%;
height:100%;
}
UPDATED
.x1 a::before{
color: white;
content: "\25B6";
opacity: 0.5;
position: absolute;
text-shadow: 0 3px black;
z-index: 100;
font-size:100%;
position:absolute;
left:50%;
top:50%;
}
UPDATED
I have embedded html in javascript like this:
span_element = $('<span>').attr(word.html).addClass('x'+ weight + " " + custom_class);
span_element.append('<a id="thumblink" href="'+ link +'" " target="_blank"><img src="' + thumblink +'" border="2px"/></a>');
and the html that is produced is this:
<span id="wordcloud_word_145" class="x1 cloud-links image-results" data-id="128" style="position: absolute; left: 51.2636px; top: 38.5956px;">
<a id="imagelink" target="_blank" "="" href="http://www.youtube.com/watch?v=0_YJToyOp_4">
<img border="2px" src="https://i.ytimg.com/vi/0_YJToyOp_4/mqdefault.jpg"></img>
</a>
</span>
Thank you in advance for your help.