3.2.1 • Published 6 years ago

html5-device-mockups v3.2.1

Weekly downloads
443
License
MIT
Repository
-
Last release
6 years ago

Gitter GitHub release Bower npm License: MIT

HTML5 device mockups v3 :iphone::computer:

You can view the demo page here: https://pixelsign.github.io/html5-device-mockups/

Use on...

  • Your website / splash screen

For...

  • Displaying photos
  • Displaying screenshots of your app(s)
  • Displaying reference works / illustrations
  • Displaying a content rotator / slideshow
  • Embedding a JavaScript app inside the device
  • Embedding a YouTube video

Why?

  • Looks cool
  • Attracts customers
  • Makes your site look professional
  • Give people the idea that your app/site works on mobile
  • Give the impression that your illustrations are meant for web/mobile
  • Lots of screenshots in just one "device"

Features:

  • Maintains the device's aspect ratio when scaled
  • Perfectly aligned screen content containers
  • Some devices have "home button" layer defined for possible click event bindings
  • Multiple color schemes
  • Multiple orientations
  • 86 different device images

Devices

NameFilenameOrientationsColors
ChromebookChromebookportraitblack
Galaxy S3galaxyS3portrait, landscapeblack, white
Galaxy S5galaxyS5portrait, landscapeblack, white, gold
Galaxy Tab 4galaxyTab4portraitblack, white
HTC One M8HtcOneM8portrait, landscapeblack
Huawei P8HuaweiP8portrait, landscapegold
iMaciMacportraitblack
iPadiPadportrait, landscapeblack, white
iPad Air 2iPadAir2portrait, landscapeblack, white, gold
iPad ProiPadProportrait, landscapeblack, white, gold
iPhone 6iPhone6portrait, landscapeblack, white, gold
iPhone 6 PlusiPhone6Plusportrait, landscapeblack, white, gold
iPhone SEiPhoneSEportrait, landscapeblack, white, gold, pink
iPhone 5iPhone5portrait, landscapeblack, white
iPhone 6 HandiPhone6Handportraitblack, white
iPhone 7 HandiPhone7Handportraitblack
iPhone 7 Hand 2iPhone7Hand_2portraitblack
iPhone 7iPhone7portrait, landscapeblack, white, gold, pink, red
Lumia 930Lumia930portrait, landscapeblack, white
MacbookMacbookportraitblack, white, gold
Macbook 2015Macbook2015portraitblack, white, gold
MacbookProMacbook2015portraitblack
PixelPixelportraitblack, white
Samsung TVSamsungTVportraitblack
Surface Pro 3SurfacePro3landscapeblack
Surface StudioSurfaceStudioportraitblack

Integrating to your website:

Bower

bower install html5-device-mockups

npm

npm i html5-device-mockups

Old traditional way

<link rel="stylesheet" type="text/css" href="dist/device-mockups.min.css">

Usage

Use this example or grap the code from the HTML generator on our demo site:

<div class="device-wrapper">
  <div class="device" data-device="iPhone5" data-orientation="portrait" data-color="black">
    <div class="screen">
      <!-- PUT CONTENTS HERE -->
    </div>
    <div class="button">
      <!-- You can hook the "home button" to some JavaScript events or just remove it -->
    </div>
  </div>
</div>

FAQ

"I can not control the height of the device"

https://github.com/pixelsign/html5-device-mockups/issues/47

Created by:

Tomi Hiltunen

Angelos Arnis

Benjamin Bortels

Credits for the original graphical renderings of the devices used in this package are found in a separate file which is provided with this package.

3.2.1

6 years ago

3.2.0

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.3

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago