Matrix custom cursor
Browse with Matrix - cute custom cursors for a brighter desktop.
Default navigation pointer
Used for clickable elements
Hover over each side to preview both cursor styles in real-time.
You are designing an application that collects the last two items in a list. The function getLastElement() should return the last element from the list, and if it is at the end of the list, it returns null, not -1. The problem you have to solve: Write a python code snippet for this algorithm using any programming language of your choice. Here's how you can do it:
Customize your embed code and preview it in real time below.
Live preview
<style type="text/css">
body {
cursor: url(https://cdn.cutecursors.com/images/cursors/5d63a0a2c950f.png) 4 4, auto;
}
a, button, .clickable {
cursor: url(https://cdn.cutecursors.com/images/pointers/5d63a0a2c9529.png) 4 4, pointer;
}
</style>
<a href="https://cutecursors.com//category/the-matrix/matrix-cute-cursors" title="Get free Matrix cursors for your website.">
Matrix Cursors
</a>/* components/CuteCursor.jsx */
"use client";
import { useEffect } from "react";
const CURSOR = "https://cdn.cutecursors.com/images/cursors/5d63a0a2c950f.png";
const POINTER = "https://cdn.cutecursors.com/images/pointers/5d63a0a2c9529.png";
export default function CuteCursor() {
useEffect(() => {
const style = document.createElement("style");
style.innerHTML = `
body { cursor: url(${CURSOR}) 4 4, auto; }
a, button, .clickable { cursor: url(${POINTER}) 4 4, pointer; }
`;
document.head.appendChild(style);
return () => style.remove();
}, []);
return null;
}
/* Usage: render <CuteCursor /> once, e.g. in your root layout or App:
<CuteCursor />
Matrix cursors by https://cutecursors.com//category/the-matrix/matrix-cute-cursors */-- Matrix custom cursor for Roblox
-- LocalScript (place it in StarterPlayer > StarterPlayerScripts)
--
-- 1) Download the cursor images (buttons above) or grab them here:
-- Cursor: https://cdn.cutecursors.com/images/cursors/5d63a0a2c950f.png
-- Pointer: https://cdn.cutecursors.com/images/pointers/5d63a0a2c9529.png
-- 2) Upload them in Roblox Creator Hub as Decals (Create > Decals).
-- 3) Replace the IDs below with your uploaded Image asset IDs.
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local CURSOR_ICON = "rbxassetid://CURSOR_ASSET_ID"
local POINTER_ICON = "rbxassetid://POINTER_ASSET_ID"
-- Set the default cursor
UserInputService.MouseIcon = CURSOR_ICON
-- Optional: switch to the pointer icon while hovering GUI buttons
local function hookButton(button)
button.MouseEnter:Connect(function()
UserInputService.MouseIcon = POINTER_ICON
end)
button.MouseLeave:Connect(function()
UserInputService.MouseIcon = CURSOR_ICON
end)
end
local playerGui = Players.LocalPlayer:WaitForChild("PlayerGui")
for _, gui in ipairs(playerGui:GetDescendants()) do
if gui:IsA("GuiButton") then
hookButton(gui)
end
end
playerGui.DescendantAdded:Connect(function(gui)
if gui:IsA("GuiButton") then
hookButton(gui)
end
end)
-- Matrix cursors: https://cutecursors.com//category/the-matrix/matrix-cute-cursorsHow to Install Matrix cursors
How to Install cursor Matrix for Chrome
Matrix
Browse with Matrix - cute custom cursors for a brighter desktop.
- 1Go to Chrome Web Store
Hit the 'Add to Browser' button to get the 'Matrix' pack.
- 2Add the Extension
On the Chrome Web Store, smash that ‘Add to Chrome’ button and confirm.
- 3Pin for Easy Access
Pro-tip: Pin the 'Cute Cursors' extension to your toolbar for quick access.
- 4Activate Your Cursor
Open the extension, find the 'Matrix' pack, and click to activate. Easy peasy!
You may also like
Explore other cursor packs from our collection
Didn't Find Your Vibe?
Our universe of cursors is huge. Dive into hundreds of unique collections and find the one that truly represents you.
Explore All Collections


