Maruthiadithya Govindarajan Maruthiadithya Govindarajan - 3 months ago 16
jQuery Question

In HTML ,how to place a new image to base image when i rollover my mouse to my base image such that both images are displayed side by side

I am making a comic web page that has 2 cartoons. What I need is when an user moves his move over a cartoon, the the dialog/mind-thought of the comic should appear in the page

Can anybody help me out???


Something like this?

img {
  max-width: 100%;
.image {
  position: relative;
  display: inline-block;
  width: 300px;
.image .dialog-image {
  opacity: 0;
  transition: opacity 300ms;
  position: absolute;
  top: 0;
  right: 10px;
  width: 100px;
.image:hover .dialog-image {
  opacity: 1;
<div class="image">
  <img src="" alt="">
  <div class="dialog-image">
    <img src="" alt="">