i want to make something similar like this, to promote my sites in scrolling effect just like in this page
I found that image from computer is just a image:
and site scrolling inside is image also:
So my question is , how to make other image to scroll inside that computer PC, like on original site i provided, maybe some JS ?
This is similar solution i found:
HTML:
<ul id="scroller">
<li><img src="https://i.stack.imgur.com/lPcRz.jpg" width="400"
height="1000"></li>
</ul>
JS:
(function($) {
$(function() { //on DOM ready
$("#scroller").simplyScroll({
customClass: 'vert',
orientation: 'vertical',
auto: true,
manualMode: 'end',
frameRate: 8,
speed: 3
});
});
})(jQuery);
and CSS:
/* Container DIV */
.simply-scroll {
width: 400px;
height: 1000px;
margin-bottom: 1em;
}
but how to make this image inside PC image, and to move up and down ?
Here is what all you need.
This might not be the best solution but the only one I can think of right now:
1) You could edit the picture of computer, cut the screen off and make it transparent.
2) Make 2 divs, one inside other.
3) First, bigger one will contain a picture of computer.
4) Second one will fill exactly the empty space in picture of computer, where screen would be.
5) Make sure to add
overflow: scroll;
in your stylesheet for inner div.It would look something like:
HTMl:
CSS:
Now I am aware that this solution will be hard to make responsive, but it is the only think I can think of right now.