Skip to content

A KivyMD Extension widget for adding a stack of cards that can be animated

License

Notifications You must be signed in to change notification settings

Guhan-SenSam/CardStack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Extension

This extension adds a beautiful Card Stack Widget. The Widget enables you to create a stack of three cards that can be animated to move to the next card infinetly. The widget is designed in a way that three MDCards get reused infinetly to give the impression of an infinte stack of cards. You can add your own widgets to the front most card.

Dependencies:

Documentation

  • Radius: Accepts a list and sets the radius of all cards in the stack
  • first_color: Accepts a list and sets the color for the front most card(Defaults to primary_light_color of theme class)
  • second_color: Accepts a list and sets the color for the middle card(Defaults to primary_color of theme class)
  • third_color: Accepts a list and sets the color for the last card(Defaults to primary_dark of theme class)
  • current_card: Returns the front most card object. This can be used to add widgets to the front most card. The value is returned before the animation starts to allow the user to load new widgets before they are seen and thus make the transition fluent.
  • transition: Accepts a string and sets the transition interpolation type to use for animations.
  • card_out_direction : The Direction the fron tmost cards exists the screen. The availbale options are down, up, left and right. This property defaults to down
  • card_in_direction : The direction in which the new card comes in on the screen. The available options are side, bottom and top. This property defaults to side
  • elevation : The elevation of the front most card. This property defaults to 0

Examples

Check the example.py on how to use this Kivy Widget

Pictures

This is the widget using default app theme colors. 1 ezgif-2-eb1232048f40

About

A KivyMD Extension widget for adding a stack of cards that can be animated

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages