模仿 reeder 风格的屏幕截图弹出缓动
The reeder lightbox popup has an easing at the end.
I'm looking for a way to imitate that easing. How do I do it?
jQuery/css solution please.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
效果甜美!
这些似乎是通过 JS 触发的 CSS 转换。叠加层首先立即缩放至 50% 的大小,然后动画化至 105%,最后又动画化回 100%,两者均采用
ease-out
的缓动设置。这会导致所谓的“80/20 效果”:通过最初跳过动画的前 80%(或在本例中为 50%),动画看起来更加敏捷且响应更快。
以下是有问题的代码位:(从 reederapp.com 的来源复制 - 我没有写这些! )
CSS (http://reederapp.com/mac/css/main.css)
JS (http://reederapp.com/mac/js /mac.js)
Sweet–looking effect!
It seems these are CSS transitions triggered via JS. The overlay is first instantly scaled to a size of 50%, then animated to 105% and afterwards animated back to 100%, both with an easing setting of
ease-out
.This causes what's known as the "80/20 effect": By skipping the first 80% (or in this case 50%) of an animation initially, the animation appears to be more snappy and responsive.
Here are the code bits in question: (Copied from reederapp.com's source — I haven not written these!)
CSS (http://reederapp.com/mac/css/main.css)
JS (http://reederapp.com/mac/js/mac.js)