No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Flat CSS3 iPhone5 + Auto Scroll

A flat iPhone5 element made with CSS3 that holds a scrollable image.
Used to display or present content of mobile pages on websites.

Author: Daniel J. Henderson
Demo :
Requires: Latest jQuery if iphone5scroll.js is enabled


Download and unzip files. Include the latest JQuery along with iphone5scroll.js and iphone5.css in the head of your HTML.

<link type="text/css" rel="stylesheet" media="screen" href="css/iphone5.css" />
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="js/iphone5scroll.js"></script>

Copy the HTML element .iphone5 markup included in the demo.html file and paste into desired place.

<div class="iphone5" title="Play">
        <div class="glare"></div>
        <div class="side-btn" style="top: 70px; height:25px;"></div>
        <div class="side-btn" style="top: 120px;"></div>
        <div class="side-btn" style="top: 165px;"></div>
        <div class="front">
                <div class="camera"></div>
                <div class="speaker"></div>
            <div class="screen">
                <div class="screen-click-btn">
                    <div class="play-overlay"></div>
                    <span class="play-btn"></span>
                <div class="info-bar">
                    <img alt="" src="img/sample_top-bar.png"/>
                <div class="thescreen">
                    <img alt="" src="img/sample_scroll.jpg"/>
                <div class="bottom"><span></span></div>

Make sure the img, css, and js folder are linked up properly.
Included in the img/ directory are some sample images to get you started.
You can replace them with your own screen captures of your mobile site.


Disable Auto Scroll

iphone5scroll.js automatically scrolls the image by it height onclick.
To scroll manually you don’t need to include jQuery or iphone5scroll.js.
You only need to add the .noclick class to the .iphone5 element.

<div class="iphone5 noclick" title="Play">

iPhone5 Color

To switch the iPhone5 color to Black simply add the .black class to the .iphone5 element.

<div class="iphone5 black" title="Play">