JSFiddle - React, Tailwind, and code Playground

HTML

<div id="testdiv" title="http://www.thesearchagents.com/wp-content/uploads/2013/11/Google-Search.jpg">hover me...</div>

CSS

#testdiv {
    line-height:100px;
}    
#testdiv:hover {
        outline:3px solid red;
        //background:url(http://www.thesearchagents.com/wp-content/uploads/2013/11/Google-Search.jpg) 100%;
    background:url(attr(title)) 100%;
    }

#testdiv:hover:after {
    content:attr(title);

}