프로젝트
GitHub에서 보기
charlestati/amplify
소개
페이지 안에서 이미지를 확대하는 작은 스크립트
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAmplify
Overview
Amplify allows users to increase the size of images.
Best used in narrow containers, between paragraphs.
It is lightweight: 29 sloc of JS and 23 sloc of SCSS resulting in 1.22kB combined.
Demo
Quickstart
- Add amplify.min.css and amplify.min.js to your page
- Add the
js-amplifyCSS class to your images
<img class="js-amplify" src="photo.jpg" alt="Photo">
Browser Support
- Chrome
- Firefox
- Safari
Probably Edge, Internet Explorer 10+ and Opera too.
Known bugs
- Sometimes the first transition is not smooth
- Adding a wrapper for image centering prevents margin collapsing with the paragraphs
Todo
- Use
transform: scale()or JavaScript for smoother transitions - Find a better naming system as
.js-*in CSS is not ideal
License
Apache 2.0
관련 프로젝트 살펴보기
불러오는 중…