All Projects → lichking24 → Thanos_Dust

lichking24 / Thanos_Dust

Licence: other
Thanos dust effect like google search

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Labels

Projects that are alternatives of or similar to Thanos Dust

atlas
Secure Distributed Thanos Deployment using an Observability Cluster
Stars: ✭ 39 (-51.85%)
Mutual labels:  thanos
kubetools
Kubetools - Curated List of Kubernetes Tools
Stars: ✭ 674 (+732.1%)
Mutual labels:  thanos
quickstart-thanos
A docker-compose stack for Thanos monitoring
Stars: ✭ 73 (-9.88%)
Mutual labels:  thanos
Thanos
Highly available Prometheus setup with long term storage capabilities. A CNCF Incubating project.
Stars: ✭ 9,820 (+12023.46%)
Mutual labels:  thanos
Victoriametrics
VictoriaMetrics: fast, cost-effective monitoring solution and time series database
Stars: ✭ 5,558 (+6761.73%)
Mutual labels:  thanos
thanosjs
Node.js implementation of Thanos JS website.
Stars: ✭ 34 (-58.02%)
Mutual labels:  thanos
observatorium
This repository contains the deployment configurations for the Observatorium instances
Stars: ✭ 129 (+59.26%)
Mutual labels:  thanos
pyrra
Making SLOs with Prometheus manageable, accessible, and easy to use for everyone!
Stars: ✭ 587 (+624.69%)
Mutual labels:  thanos
geras
Geras provides a Thanos Store API for the OpenTSDB HTTP API. This makes it possible to query OpenTSDB via PromQL, through Thanos.
Stars: ✭ 35 (-56.79%)
Mutual labels:  thanos
thanos-receive-controller
Kubernetes controller to automatically configure Thanos receive hashrings
Stars: ✭ 55 (-32.1%)
Mutual labels:  thanos

Thanos Dust Effect

Effects Demo

As Thanos making a snap with the Infinite Gauntlet, half the heros vanish to dust. As using the time stone, people come back.

Details

The procedures:

  1. Click the Gauntlet button, and display animation to make a snap, and play audio file;
  2. Select half heros by random, the random method is to resort members array;
arr.sort(function() {
  return 0.5 - Math.random();
});
  1. Make selected item to dust
  • 3.1 use html2canvas library to convert dom to a canvas image
  • 3.2 split the canvas images into many pieces by pixel, function generateFrames()
  • 3.3 create a container which has the same size and position as the converted dom
  • 3.4 appendChild to the container with the pieces
  • 3.5 rotate random degrees and translate random pixel for each piece, which shows the dust animation
  • 3.6 set converted dom item to be invisible and finish the SNAP action
  1. Reverse time to bring heros back by adjusting the visibility of converted dom items

FAQ

Why use a nodejs express server?

A static html file will show errors with "Unable to get image data from canvas because the canvas has been tainted by cross-origin data", even if I set allowTaint to be true.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].