標籤:

2018年6月9日:開源日報第93期

2018年6月9日:開源日報第93期

來自專欄開源日報

每天推薦一個 GitHub 優質開源項目和一篇精選英文科技或編程文章原文,歡迎關注開源日報。交流QQ群:202790710;微博:weibo.com/openingsource;電報群 t.me/OpeningSourceOrg


今日推薦開源項目:《各種東西轉PDF ReLaXed》GitHub鏈接

推薦理由:這個項目正如標題所說可以把各種各樣的東西轉化為 PDF 文檔,只要你給出文檔和樣式表,它就能給你一個把原來的內容全部寫進去的 PDF 文檔,甚至你可以印個幻燈片。雖然它看起來很魔法,但是實際上並不算太複雜,把提供的文檔和樣式錶轉化成一個 HTML ,然後通過 Puppeteer 把 HTML 再轉化成 PDF ,這裡順便附上它的鏈接。

Puppeteer:github.com/GoogleChrome


今日推薦英文原文:《11 Javascript Animation Libraries For 2018》作者:Jonathan Saring

原文鏈接:blog.bitsrc.io/11-javas

推薦理由:又到了JavaScript的回合。這次要介紹的是JavaScript中好用的動畫庫,需要的朋友們千萬別錯過了。順帶一提,有的時候不只是動畫庫,純CSS同樣可以完成任務,而且兼容性更好,性能也不差。

11 Javascript Animation Libraries For 2018

While browsing the web looking for a neat Javascript animation library, I』ve found that many of the 「recommended」 ones were not maintained for a while.

After some research, I』ve gathered 11 of the finest libraries around to use in your app. I』ve also added a few more, mostly unmaintained, useful libraries.

When working with UI components, you can also use Bit to easily share these components between different apps instead of copy-pasting them, make changes from different projects and collaborate with your others.

Bit - Share and build with code components

Bit helps you share, discover and use code components between projects and applications to build new features and…bitsrc.io

Using Pure CSS

Before diving into these libraries, let』s not forget about using pure CSS. Why? because it』s standard, it can improve performance (GPU), provide backward and forward compatibility, and it just might be the most effective way to create animations. Here are 10 examples of neat pure CSS animations.

1. Three.js

At over 43K stars, this popular library is a great way to create 3D animations on the browser, using WebGL in an intuitive way. Providing <canvas>, <svg>, CSS3D and WebGL renderers, this library lets us create rich interactive experiences across devices and browsers. First introduced at April 2010, the library is still being developed by nearly 1,000 contributors.

mrdoob/three.js

three.js?—?JavaScript 3D library.github.com

2. Anime.js

At over 20K stars, Anime is a JavaScript animation library that works with CSS Properties, individual CSS transforms, SVG or any DOM attributes, and JavaScript Objects. This library lets you chain multiple animation properties, synchronize multiple instances together, create timelines and more.

juliangarnier/anime

anime?—?JavaScript Animation Enginegithub.com

3. Mo.js

At 14K stars, this library is a motion graphics toolbelt for the web, with simple declarative APIs, cross-device compatibility and over 1500 unit-tests. You can move things around the DOME or SVG DOME or create unique mo.js objects. Although documentation is somewhat scarce, examples are plentiful and here』s an introduction at CSS tricks.

legomushroom/mojs

mojs?—?motion graphics toolbelt for the webgithub.com

4. Velocity

At 15K stars, Velocity is a fast Javascript animation engine with the same API as jQuery』s $.animate(). It features color animation, transforms, loops, easings, SVG support, and scrolling. Here』s a breakdown of Velocity』s high performance engine, and here』s an intro to SVG animation using the library.

julianshapiro/velocity

velocity?—?Accelerated JavaScript animation.github.com

5. Popmotion

At 14K stars, this functional and reactive animation library weighs only 11kb. It allows developers to create animations and interactions from actions, which are streams of values that can be started and stopped, and created with CSS, SVG, React, three.js and any API that accepts a number as an input.

Popmotion/popmotion

popmotion?—?A functional, reactive animation library.github.com

6. Vivus

At over 10K stars, Vivus is a zero-dependencies JavaScript class that lets you animate SVGs, giving them the appearance of being drawn. You can use one of many available animations, or create custom script to draw you SVG. Check out Vivus-instant to get a live example, hands-on.

maxwellito/vivus

vivus?—?JavaScript library to make drawing animation on SVGgithub.com

7. GreenSock JS

GSAP is a JavaScript library for creating high-performance, zero dependencies, cross-browser animations which claims to be used in over 4 million websites. GSAP is flexible and works with React, Vue, Angular and vanilla JS. GSDevtools can also help dubug animations built using GSAP.

greensock/GreenSock-JS

GreenSock-JS?—?GreenSock』s GSAP JavaScript animation library (including Draggable).github.com

8. Scroll Reveal

With 15K stars and zero dependencies, this library provides easy scroll animations for web and mobile browsers, to reveal things on-scroll in an animated way. It supports multiple neat types of effects, and even lets you define animations using natural language. Here』s a short SitePoint tutorial.

jlmakes/scrollreveal

scrollreveal?—?Easy scroll animations for web and mobile browsers.github.com

9. Hover (CSS)

Well, this is a CSS library. At 20K stars, Hover provides acollection of CSS3 powered hover effects to be applied to links, buttons, logos, SVG, featured images and more, available in CSS, Sass, and LESS. You can copy and paste the effect you』d like to use in your own stylesheet or reference the stylesheet.

IanLunn/Hover

Hover?—?A collection of CSS3 powered hover effects to be applied to links, buttons, logos, SVG, featured images and so…github.com

10. Kute.js

A fully fledged native JavaScript animation engine with essential features for cross-browser animations. The focus is code quality, flexibility, performance and size (core engine is 17k min and 5.5k gzipped)- here』s a demo. The library is also extendable so you can add your own features.

thednp/kute.js

kute.js?—?KUTE.js is a native Javascript animation engine featuring great code quality, badass performance, SVG…github.com

11. Typed.js

This 6K stars library basically lets you create typing animations for strings at selected speeds. You can also place an HTML div on the page and read from it to allow access for search engines and users with JavaScript disabled. Used by Slack and others, this library is both popular and surprisingly useful.

mattboldt/typed.js

github.com/mattboldt/tytyped.js?—?A JavaScript Typing Animation Librarygithub.com

  • Also check out: iTyped

Honorable mentiosns

Note that these 8 libraries are mostly unmaintained, so use with care.

  • Particles

VincentGarreau/particles.js

particles.js - A lightweight JavaScript library for creating particlesgithub.com

  • Loaders

ConnorAtherton/loaders.css

loaders.css?—?Delightful, performance-focused pure css loading animations.github.com

  • Parallax JS

wagerfield/parallax

parallax - Parallax Engine that reacts to the orientation of a smart devicegithub.com

  • Bounce.js

tictail/bounce.js

bounce.js - Create beautiful CSS3 powered animations in no time.github.com

  • CTA JS

chinchang/cta.js

cta.js - Animate your action-to-effect pathsgithub.com

  • Tooltips JS

ytiurin/html5tooltipsjs

html5tooltipsjs - Tooltips with smooth 3D animationgithub.com

  • Pace JS

HubSpot/pace

pace - Automatically add a progress bar to your site. #hubspot-open-sourcegithub.com

  • Anijs

anijs/anijs

anijs - A Library to Raise your Web Design without Coding.github.com


每天推薦一個 GitHub 優質開源項目和一篇精選英文科技或編程文章原文,歡迎關注開源日報。交流QQ群:202790710;微博:weibo.com/openingsource;電報群 t.me/OpeningSourceOrg

推薦閱讀:

李開源:鄉村風水案例
用天文曆法解開源頭文化之謎(劉明武)
高性能緩存伺服器 nuster 1.7.9.9 發布
Python 回測終端--PythonLab 開源發布
全面應用 linux並棄用windows的經驗分享

TAG:開源 |