洞察探索open banking如何通过小程序容器技术助力金融企业实现数据安全和数字化转型
669
2022-10-22
CliSpinners一个命令行应用程序的旋转动画
CliSpinners
Installation
Install from Hex, Package Manger. by adding cli_spinners to your list of dependencies in mix.exs:
def deps do [{:cli_spinners, "~> 0.1.0"}]end
and published on HexDocs.
Demo
To see all the demos in your terminal, just load the library in your iex shell and call a definition demo
iex> CliSpinners.demo()
Here, each animation is played for two seconds. You can break that by pressing Ctrl C twice. You will return to your shell again.
Documentation for CliSpinners.
CliSpinners are nothing more like a loading animation in the command line interface.
This module comes with different flavours of loading spins. The following is the list of flavours you can pass
Loading Flavors
dots
The dots flavor comes with 12 combnations of loading animations. From dots to dots12.
dotsdots2dots3..........dots12
There is no dots1. Here, dots1 is written as just dots .
line
Line comes with two combinations
lineline2
pipe
pipe
simple_dots
simple_dotssimple_dots_scrolling
star
starstar2
flip
flip
hamburger
hamburger
grow
This grow format comes in two flavors
grow_verticalgrow_horizontal
balloon
balloonballoon2
noise
noise
bounce
bounce
box_bounce
box_bouncebox_bounce2
Geometry
trianglecirclearccirclecircle_quarterssquare_cornerscircle_halves
squish
squish
toggle
This toggle flavor comes in 13 flavors
toggletoggle1toggle2.....toggle13
arrow
arrowarrow2arrow3
bouncing
bouncing_barbouncing_ball
smiley
smiley
monkey
monkey
hearts
hearts
clock
clock
earth
earth
moon
moon
pong
pong
runner
runner
shark
shark
dqpb
dqpb
Giff Credits Sindresorhus Npm Package
Inspiration from Progessbar:
Thanks for Reading.
Support
Buy me a cup of coffee https://paypal.me/ankanna
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~