Explore

Explore snippets

Discover reusable code snippets, examples, fixes, and ideas shared by developers, students, and teams.

Clear
130 public snippets
Open
CSS
Public

Card Hover Lift

A small hover effect that lifts a card with transition and shadow.

CSS Preview
.hover-card {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hover-card:hover {
  transform: translateY(-4px);
#css #card #hover #ui
CodShot user
CodShot user
Updated: 2026-06-03 14:05
Public snippets
0 #61
Open
CSS
Public

CSS Loading Spinner

A small pure CSS loading spinner using border animation.

CSS Preview
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#css #animation #loader #utility
CodShot user
CodShot user
Updated: 2026-06-03 14:05
Public snippets
0 #60
Open
CSS
Public

Button Pulse Animation

A simple CSS pulse effect for call-to-action buttons.

CSS Preview
.button-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  text-decoration: none;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
#css #animation #button #beginner
CodShot user
CodShot user
Updated: 2026-06-03 14:05
Public snippets
0 #59
Open
HTML / Markup
Public

Simple Pricing Card

A clean HTML pricing card structure that can be styled with any CSS framework.

HTML / Markup Preview
<article class="pricing-card">
  <header>
    <h2>Plus</h2>
    <p>For students and junior developers.</p>
  </header>

  <p class="price">$5 <span>/ month</span></p>

  <ul>
    <li>500 snippets</li>
    <li>Private snippets</li>
    <li>Workspace export</li>
#html #pricing #card #saas
CodShot user
CodShot user
Updated: 2026-06-03 14:05
Public snippets
0 #57
Open
HTML / Markup
Public

Basic SEO Head Tags

A small HTML head template with title, description, viewport, canonical URL, and Open Graph tags.

HTML / Markup Preview
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Page title - Site name</title>
  <meta name="description" content="A short page description for search engines.">
#html #seo #meta #beginner
CodShot user
CodShot user
Updated: 2026-06-03 14:05
Public snippets
0 #56
Open
HTML / Markup
Public

Responsive Image Figure

An HTML figure pattern for responsive images with a caption.

HTML / Markup Preview
<figure class="image-card">
  <img
    src="/assets/img/example.jpg"
    alt="A student writing code on a laptop"
    loading="lazy"
    width="1200"
    height="800"
  >
  <figcaption>
    Coding practice session with reusable snippets.
  </figcaption>
#html #image #accessibility #seo
CodShot user
CodShot user
Updated: 2026-06-03 14:05
Public snippets
0 #55
Open
HTML / Markup
Public

Accessible Login Form

A simple accessible login form with labels, autocomplete attributes, and required fields.

HTML / Markup Preview
<form action="/signin" method="post" class="login-form">
  <div>
    <label for="email">Email address</label>
    <input
      type="email"
      id="email"
      name="email"
      autocomplete="email"
      required
    >
  </div>

  <div>
#html #form #accessibility #beginner
CodShot user
CodShot user
Updated: 2026-06-03 14:05
Public snippets
0 #54
Open
Haskell
Public

Basic Haskell Math and Utility Functions

Defines several mathematical and utility functions in Haskell including calculations for circle area, sphere volume, temperature conversion,...

Haskell Preview
module Gyak04 where

    import Data.Char(toLower, toUpper, isLower, isUpper)

    circleArea :: Double -> Double
    circleArea r = (r^2)*pi

    sphereVolume :: Double -> Double
    sphereVolume r = 4*(r^3)*pi/3

    cToF :: Double -> Double
CodShot user
CodShot user
Updated: 2026-05-07 15:40
Public snippets
0 #39
Open
JavaScript
Public

Tömb feldolgozása switch szerkezettel

Tömb elemek feldolgozása map és switch segítségével, különböző értékekhez rendelt műveletekkel.

JavaScript Preview
emptyArray().map(function(x) { return x + 2; });

filledArray().map(function(x) { return x * 2; });

for (var item of filledArray()) {
  switch (item) {
    case 1:
    case 2:
      print(item === 1 ? "one" : "two");
      break;
    case 3:
    case 4:
CodShot user
CodShot user
Updated: 2026-05-05 17:49
Public snippets
0 #32
Open
HTML / Markup
Public

Simple HTML + JavaScript Counter

A basic counter with increment and decrement buttons using HTML and JavaScript.

HTML / Markup Preview
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Simple Counter</title>
</head>
<body>
  <h1>Counter: <span id="counter">0</span></h1>
CodShot user
CodShot user
Updated: 2026-05-05 09:33
Public snippets
0 #30
CodShot AI Help
Ask about CodShot features, plans, workspace, AI credits, referrals, and public help topics.
Hi! I can help you understand how CodShot works. What would you like to know?
For account-specific or sensitive issues, please open a support ticket. Open support