Party🎉

by Shap Po
5
4
3
2
1
Score: 48/100

Description

Category: Customization & UI

The Party🎉 plugin brings a playful and interactive element to your Obsidian experience by adding customizable visual effects such as confetti and sparkles. It enhances the user interface by introducing dynamic effects to tasks, checkboxes, and Kanban boards, with compatibility for plugins like Dataview and Tasks. Users can tailor these effects with various customization options, including unique shapes and animations. The plugin supports API integration for advanced users and even enables creative uses like clickable confetti buttons or SVG-based custom shapes. Party🎉 adds a touch of celebration and fun to productivity workflows.

Reviews

No reviews yet.

Stats

26
stars
6,616
downloads
2
forks
1,324
days
1,257
days
1,257
days
1
total PRs
0
open PRs
0
closed PRs
1
merged PRs
8
total issues
2
open issues
6
closed issues
0
commits

Latest Version

3 years ago

Changelog

new customization features

  • custom shapes!
  • particles preview

Kanban Compatibility (https://github.com/shap-po/obsidian-party/issues/6)

  • new setting for kanban
  • effect settings are now stored in "effectConfigs" so that new configs can be added easier

effect settings

  • copy/paste/reset settings
  • confirmation dialog for reset

other

  • donations links
  • moved css to a separate folder

README file from

Github

Party🎉

An implementation of the party.js library for the Obsidian.

Features

  • Create confetti and sparkles effects

  • Add effects to checkboxes (also supports dataview tasks and a tasks plugin)

  • A lot of customization options
  • Custom shapes
  • Kanban compatibility

  • What else do you want? (I'm open to suggestions!)

Installation

Search for the "Party🎉" in the Obsidian plugin list.

Manual Installation

  1. Go to Releases and download the latest release
  2. Enable plugins in the Obsidian settings
  3. Extract the contents of the zip file to obsidian plugins folder
  4. You should have a folder named "obsidian-party", containing "main.js" and "manifest.json" files
  5. Restart Obsidian and enable the plugin in the plugin list

Manual build

  1. Clone the repository
  2. Run npm i or yarn to install dependencies
  3. npm run dev to build the plugin

Examples

Checkbox effects

  1. Open plugin settings
  2. Select effect type
  3. Enjoy!

Custom elements / API

Either add a confetti or sparkles class for an element, or make use of all features of the party module, which can be accessed through window.party! Also, you'd better to not spam particles, because it can cause performance issues.

Simple confetti button

<button class="confetti">Click me!</button>

Click me! (This button will launch confetti on click if you have this plugin enabled)

DataView JS support

```dataviewjs
const buttonMaker = (text) => {
  const btn = this.container.createEl('button', {"text": text});
  btn.addEventListener('click', async (evt) => {
    evt.preventDefault();
    party.confetti(evt); // <---- creating confetti
    party.sparkles(evt); // <---- creating sparkles
  });
  return btn;
}

dv.table(["File", "Button"],
	dv.pages('"Dataview"')
    .map(t => [
      t.file.link,
      buttonMaker("Let's start the party!")
    ]
  )
)
```

Custom shapes

Any HTML code can be used as a shape. For example, you can use an SVG image as a shape.

<svg viewBox="0 0 2 2" width="10" height="10"><circle cx="1" cy="1" r="1"/></svg>

Put the code in the "Shape HTML" field in the custom shapes section of the plugin settings, give it a name and you're good to go! Now you can select custom shapes in the "Shapes" field of the effect settings.