All Projects → olets → Screenshotframes

olets / Screenshotframes

A small CSS library for adding responsive frames (mobile device, desktop computer, or browser toolbar) to images

Projects that are alternatives of or similar to Screenshotframes

Lazy Line Painter
Lazy Line Painter - A Modern JS library for SVG path animation
Stars: ✭ 1,918 (+10555.56%)
Mutual labels:  svg, responsive
React Native Responsive Linechart
A customizable and responsive line or area chart for react-native
Stars: ✭ 105 (+483.33%)
Mutual labels:  svg, responsive
Gantt Elastic
Gantt Chart [ javascript gantt chart, gantt component, vue gantt, vue gantt chart, responsive gantt, project manager , vue projects ]
Stars: ✭ 869 (+4727.78%)
Mutual labels:  svg, responsive
Html To Image
✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
Stars: ✭ 595 (+3205.56%)
Mutual labels:  svg, screenshot
Formstone
Library of modular front end components.
Stars: ✭ 823 (+4472.22%)
Mutual labels:  responsive
Django Admin Bootstrap
Responsive Theme for Django Admin With Sidebar Menu
Stars: ✭ 787 (+4272.22%)
Mutual labels:  responsive
Ksnip
ksnip the cross-platform screenshot and annotation tool
Stars: ✭ 776 (+4211.11%)
Mutual labels:  screenshot
Polacode
📸 Polaroid for your code
Stars: ✭ 6,511 (+36072.22%)
Mutual labels:  screenshot
Upscreen
Capture your screen, upload to your own server.
Stars: ✭ 17 (-5.56%)
Mutual labels:  screenshot
Snapshots For Windows
Application for make and upload screenshots / Приложение для создания и загрузки скриншотов
Stars: ✭ 6 (-66.67%)
Mutual labels:  screenshot
Nn Svg
Publication-ready NN-architecture schematics.
Stars: ✭ 805 (+4372.22%)
Mutual labels:  svg
React Container Query
📦 Modular responsive component
Stars: ✭ 788 (+4277.78%)
Mutual labels:  responsive
Styled System
⬢ Style props for rapid UI development
Stars: ✭ 7,126 (+39488.89%)
Mutual labels:  responsive
Bootstrap Email
Bootstrap 4 (and soon 5) stylesheet, compiler, and inliner for responsive and consistent emails with the Bootstrap syntax you know and love.
Stars: ✭ 781 (+4238.89%)
Mutual labels:  responsive
Jeelizweboji
JavaScript/WebGL real-time face tracking and expression detection library. Build your own emoticons animated in real time in the browser! SVG and THREE.js integration demos are provided.
Stars: ✭ 835 (+4538.89%)
Mutual labels:  svg
Jsplumb
Visual connectivity for webapps
Stars: ✭ 6,758 (+37444.44%)
Mutual labels:  svg
Svg 3d Builder
an elaborate tool to create 3d model with svg
Stars: ✭ 803 (+4361.11%)
Mutual labels:  svg
Vue Unicons
1000+ Pixel-perfect svg icons for your next project as Vue components
Stars: ✭ 828 (+4500%)
Mutual labels:  svg
Iro.js
🎨 Modular color picker widget for JavaScript, with support for a bunch of color formats
Stars: ✭ 796 (+4322.22%)
Mutual labels:  svg
Rickshaw
JavaScript toolkit for creating interactive real-time graphs
Stars: ✭ 6,506 (+36044.44%)
Mutual labels:  svg

ScreenshotFrames

v1.5.4

ScreenshotFrames is a small CSS library that lets you add browser and device frames around images (screenshots, for example) on an html page. All frames are fully responsive down to the narrowest standard smartphone width. And because every graphic element that resizes is either an svg (e.g. devices) or straight CSS (e.g. browser titlebar backgrounds and borders), the frames will always be crisp no matter how big or small you present them.

Check out the demo pen!
 

Use

Add the screenshot-frames.min.css stylesheet (or screenshot-frames-basics.min.css — see below), and then in the markup wrap the image with a screenshot frame class like

<div class="screenshot-framename">
	<img ... />
</div>

where "framename" is descriptive of the frame (e.g. .screenshot-ipad).

(Of course you can also use the unminified stylesheets, but really they're just included for Bower support.)

Restrictions

The .screenshot-framename must be 100% wide, can't have padding, and can't have any margins other than margin-bottom. Use a wrapping container to control width and margins as necessary.

 

Available Frames

screenshot-frames.min.css supports Chrome™, iPad Air®, iPhone®, Mac® monitor (Thunderbolt display), MacBook®, PC monitor (Dell™ Ultrasharp display), and Safari®.

If you don't need all that, consider using the lighter-weight screenshot-frames-basics.min.css, which only includes support for Safari, iPad, and iPhone.

You can also build your own custom set of frames (requires node): clone or download the repo, edit src/screenshot-frames-custom.less as necessary, and then in the ScreenshotFrames directory run

$ npm install
$ gulp build:custom

(Depending on your setup, you may need to do sudo npm install.) Your custom frame set will be saved as screenshot-frames-custom.min.css.

Browsers

  • Safari
    use .screenshot-safari
    image aspect ratio doesn't matter; container should be ≥ 310px wide
  • Chrome
    use .screenshot-chrome
    image aspect ratio doesn't matter; container should be ≥ 220px wide
    Supports the optional data-screenshoturl attribute. Use data-screenshoturl="this://text.appearsinthe.addressbar" (see the demo pen for an example)

Desktop

  • MacBook
    use .screenshot-macbook
    takes image with aspect ratio 393:245 (see #1)
  • Mac monitor (Thunderbolt display)
    use .screenshot-mac
    takes image with aspect ratio 16:9
  • PC monitor (Dell Ultrasharp display)
    use .screenshot-pc
    takes image with aspect ratio 16:9

Mobile

  • iPad Air (silver)
    use .screenshot-ipad
    takes image with aspect ratio 3:4
  • iPhone 6S (silver)
    use .screenshot-iphone
    takes image with aspect ratio 375:667

 


Roadmap

  • Chrome
  • Safari
  • iPad
    • w/ Mobile Safari
  • iPhone
    • w/ Mobile Safari
  • MacBook
  • Mac desktop
  • PC desktop
  • some Android™
    • w/ Chrome For Mobile
  • Firefox®
  • OS X® window

 

Contributing

Adding new frames is extremely easy, and PRs are welcome. For each new frame

  • add the stylesheet src/framename/screenshot-frame-framename.less

    • for base64 encoded background images (cf. Safari frame), use
      background-image: url(filepathrelativetostylesheet) (supports png and jpg)
    • for svg background images (cf. iPhone frame), use
      background-image: url('data:image/svg+xml;utf8,/* svg \*//* endinject */')
    • for mobile and desktop frames, use svg; for browser frames, use whichever is lighter
  • add relevant images and/or svgs to src/framename

  • in src/screenshot-frames-additional.less and src/screenshot-frames-custom.less

    • add the frame class where appropriate
    • import the stylesheet
  • add a demo to demo/demo.html

  • if appropriate, credit the illustrator in the README.md's "Acknowledgments"

Compile with

$ gulp config
$ gulp build

 

Acknowledgments

Android and Chrome are trademarks of Google Inc.
Dell is a trademark of Dell Inc.
iPad, iPad Air, iPhone, Mac, MacBook, OS X, and Safari are registered trademarks of Apple, Inc.
Firefox is a registered trademark of the Mozilla Foundation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].