![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Because websites aren't bloated enough as it is
Raindeer (not to be confused with reindeer) is a rather small package that takes a list of emojis and make them rain all over your website.
Install with Yarn:
yarn add raindeer
Install with NPM:
npm install raindeer
UMD script:
<script src="https://unpkg.com/raindeer"></script>
A simple and pretty "useful" use case is to make things rain whenever anything is clicked.
document.addEventListener('click', function () {
EmojiRain.start(document.body, {
duration: 2,
dropSize: 40,
emoji: {
'😄': 5,
'🍰': 1
}
})
})
These are the options that can be given to EmojiRain.start
:
Option | Default value | Type | Description |
---|---|---|---|
emoji | Required | String | Array | Object | Set to a single emoji as a string to make only that emoji rain. Set to an array of emoji strings to make those emoji rain equally much. Set to an object where the keys are emoji and the value is the likeliness of that emoji raining. |
duration | 0 | Number | The duration of the rain. If set to 0 the rain will go on until EmojiRain.stop() is called. |
dropsPerSecond | 10 | Number | How many drops to create per second |
dropSize | 20 | Number | The size of the drops. This actually controls the font size in px of the emoji. |
speedMin | 500 | Number | The minimum time allowed for a drop to travel across the screen. |
speedMax | 1000 | Number | The minimum time allowed for a drop to travel across the screen. |
rotationStartMin | -90 | Number | The minimum allowed start rotation for a drop. |
rotationStartMax | -180 | Number | The maximum allowed start rotation for a drop. |
rotationDistanceMin | 0 | Number | The minimum allowed rotation distance for a drop. |
rotationDistanceMax | 45 | Number | The maximum allowed rotation distance for a drop. |
resolution | 2 | Number | The amount of times that new drops will be created each second. This shouldn't need to be increased and could potentially have a high performance impact. |
See the contribution guidelines.
There are currently no tests. I'll make sure to add some when I get the time.
We use ESLint for making sure that our code remains pretty and consistent throughout the project. If your editor doesn't automatically pick up our config you can lint the code using npm run lint
.
Malcolm Nihlén - malcolm.nihlen@gmail.com
Distributed under the MIT licence. See LICENCE
for more information.
FAQs
Make your website fabulous
We found that raindeer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.