Urgent.News

What's breaking now, across thousands of outlets.

Tech

Make Your Buttons Dodge the Cursor with a Wrium Plugin

Most buttons just sit there and wait to be clicked. This one doesn't. Wrium Evasive Button is a small plugin for Wrium that makes a button (or any interactive element) smoothly dodge the cursor when you get close. It's silly on purpose, but it turns out to be surprisingly useful. Why would you want this? Smart form validation: the submit button stays out of reach until the required fields are…

Buttons often wait patiently for a click. The Wrium Evasive Button plugin, however, can make a button—or any interactive element—smoothly avoid the cursor as you approach. This playful feature offers several benefits, such as enabling smart form validation, gamified forms, and challenging confirmations. Here’s how to implement it:

First, install the plugin along with its dependency, Wrium, using npm: `npm install @wrium/evasive-button @wrium/wrium`. Then, add the EvasiveButtonPlugin to your Wrium application. Usage is straightforward:

```html

<div id="app">

<button v-evade>Try to Click Me!</button>

</div>

```

In your JavaScript, initialize the app and mount it:

```javascript

import { createApp } from "@wrium/wrium";

import { EvasiveButtonPlugin } from "@wrium/evasive-button";

createApp(() => ({})).use(EvasiveButtonPlugin).mount("#app");

```

For form validation, bind the `active` property of the button to your form’s state. When the form is invalid, the button will evade the cursor, providing a playful experience until the form is correct:

```html

<div id="button-arena">

<button v-evade="{ active: !isFormValid, bounds: "#button-arena", maxRadius: 150 }">

{{ isFormValid ? "Log In" : "Fill fields first!" }}

</button>

</div>

```

Customize the button’s appearance based on its state with CSS:

```css

.login-btn.is-evading {

background: #e11d48;

}

```

Remember, while the plugin adds fun, it should be used sparingly for critical actions. It respects user preferences for reduced motion, supports keyboard navigation, and automatically stops evading after a set duration or number of attempts. The project is available on GitHub, MIT licensed, and welcomes contributions with creative uses of the plugin.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

📒LedgerFriend — From Everyday Transactions to Smarter Books.

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend Describe the transaction. Review the entry. Understand your books.

  • LedgerFriend is an AI-powered bookkeeping assistant for Indian sole proprietors.
  • It interprets everyday language to suggest transaction details and generate organized books.
  • The prototype is for learning, not production accounting or tax advice.

SA’s ransomware problem is hiding a much bigger issue

Cartrack, RelyComply, ATNS. The recent cyber incidents mostly look like crime. That is where the question starts, not where it ends.

  • South Africa faces cyber security issue beyond criminal activity
  • Ransomware attacks on Cartrack and other organizations
  • Difficulty distinguishing strategic operations from cybercrime

PHP Framework Architecture in 2026: Laravel, Symfony, Slim, and a Lightweight Approach

PHP Framework Architecture in 2026: Laravel, Symfony, Slim, and a Lightweight Approach PHP has no shortage of frameworks. Laravel and Symfony dominate a large part of the modern PHP ecosystem.

  • Laravel and Symfony dominate modern PHP landscape
  • Slim offers smaller HTTP layer for minimal projects
  • DBM Framework allows developer-defined application architecture

Week 2: Learning Python, Cloud, DevOps, Terraform, SSH, and CLI Basics

Note: These are my learning notes from my current phase. I am keeping them as I wrote them so I can look back and see my progress.

  • Author learns Python basics, including data types and variables
  • Explores cloud computing with Amazon Web Services (AWS)
  • Discusses Terraform for infrastructure as code

More from Saturday 3 October →