• Stars
    star
    690
  • Rank 65,522 (Top 2 %)
  • Language
    CSS
  • License
    MIT License
  • Created about 8 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ˜‰ Lightweight pure CSS tooltip for the greater good
wenk

Lightweight pure CSS tooltip for the greater good


Table of Contents

About

Wenk is a Lightweight tooltip available in pure CSS, cssnext using PostCSS, Less or SCSS.

As Seen in

Why

  • It's Lightweight with the minified version being only 733 bytes when gzipped ๐Ÿ˜ฑ
  • It's easy to use
  • It's easy to customize
  • It's pure CSS
  • You're already here

Install

Install with cdn

<link rel="stylesheet" href="https://unpkg.com/wenk/dist/wenk.css">
<!-- Or -->
<link rel="stylesheet" href="https://cdn.rawgit.com/tiaanduplessis/wenk/master/dist/wenk.css">

Install with npm

$ npm install wenk

Install with yarn

$ yarn add wenk

Usage

wenk

Simply add the data-wenk attribute to your HTML with the text you want to display.

<span data-wenk="This is a tooltip!"></span>

You can display the tooltip at different positions using the data-wenk-pos attribute or the .wenk--* class. The default position is at the top.

<span data-wenk="I'm to the right!" data-wenk-pos="right">Wenk to the right!</span>
<span data-wenk="I'm to the left!" data-wenk-pos="left">Wenk to the left!</span>
<span data-wenk="I'm at the bottom!" data-wenk-pos="bottom">Wenk to the button!</span>
<!-- Or -->
<span class="wenk--right" data-wenk="I'm to the right!">Wenk to the right!</span>
<span class="wenk--left" data-wenk="I'm to the left!">Wenk to the left!</span>
<span class="wenk--bottom" data-wenk="I'm at the bottom!">Wenk to the button!</span>

The width of the tooltip can also easily be changed.

<span data-wenk="I'm small!" data-wenk-length="small">Small wenk!</span>
<span data-wenk="I'm medium!" data-wenk-length="medium">Medium wenk!</span>
<span data-wenk="I'm large!" data-wenk-length="large">Large wenk!</span>
<span data-wenk="I fit!" data-wenk-length="fit">I fit just right!</span>
<!-- Or -->
<span data-wenk="I'm small!" class="wenk-length--small">Small wenk!</span>
<span data-wenk="I'm medium!" class="wenk-length--large">Medium wenk!</span>
<span data-wenk="I'm large!" class="wenk-length--large">Large wenk!</span>
<span data-wenk="I fit!" class="wenk-length--fit">I fit just right!</span>

You can also align your text within the container

<p><span data-wenk="I'm right!" class="wenk-align--right">Wenk to the right!</span></p>
<p><span data-wenk="I'm center!" class="wenk-align--center">Wenk in the center!</span></p>

Demo

Check out the demo here.

Support

According to doiuse.com the following browsers are currently missing support:

  • IE (8,10)
  • Opera (12.1)
  • Opera Mini (5.0-8.0)
  • IE Mobile (10)

Contributing

All Contributions are welcome! Please open up an issue if you would like to help out. ๐Ÿ˜„

License

Licensed under the MIT License.

More Repositories

1

awesome-react-talks

๐Ÿ˜Ž A curated list of talks about React or topics related to React
700
star
2

kill-port

โŒ Kill the process running on given port
JavaScript
463
star
3

awesome-react-native-talks

๐Ÿ˜Ž A curated list of talks about React Native or topics related to React Native
357
star
4

dont-go

A small client-side library with zero dependencies to change the title and/or favicon of the page when it is inactive. ๐Ÿ˜Œ
HTML
328
star
5

tipograf

Lightweight pure CSS typography base for your next project
HTML
194
star
6

react-native-google-maps-directions

๐Ÿš• Get direction using Google Maps in React Native ๐Ÿš—
TypeScript
180
star
7

pomd

๐Ÿ… A good old cli based Pomodoro timer with native notifications
JavaScript
174
star
8

react-native-phone-call

Initiate a phone call in React Native
JavaScript
164
star
9

react-hook-form-persist

Persist and populate react-hook-form form using storage of your choice
TypeScript
138
star
10

coinmarketcap-api

CoinMarketCap API wrapper for node
JavaScript
116
star
11

hexo-theme-brewski

A minimal Hexo theme
CSS
91
star
12

nanoreset

Minimal CSS reset in less than 500 bytes
CSS
89
star
13

bolt-starter

UNMAINTAINED - โšก Rapid starter for your next React Native project โšก
JavaScript
77
star
14

react-native-websocket

๐Ÿ”ƒ WebSocket API wrapped as a component for React Native
JavaScript
74
star
15

react-native-email

๐Ÿ“ฎ Send a email using the Linking API
JavaScript
61
star
16

react-native-modest-checkbox

A modest checkbox component for React Native โœ…
JavaScript
54
star
17

react-native-surrender

CLI script that clears Watchman, removes node_modules and cleans cache using npm or yarn
JavaScript
53
star
18

react-native-datepicker-modal

React Native DatePicker Modal Component for iOS/Android
JavaScript
50
star
19

dronk-expo

A social drinking game
JavaScript
41
star
20

awesome-go-talks

Curated list of talks related to the Go programming language
40
star
21

swifty-qr

Easy QR code scanning and generation
JavaScript
30
star
22

stoor

Storage wrapper with support for namespacing, timeouts and multi get/set and remove.
TypeScript
26
star
23

parcel-plugin-asset-copier

Copy static assets to your bundle dir
JavaScript
25
star
24

awesome-unstated

A collection of awesome things regarding Unstated.
25
star
25

react-native-modest-cache

๐Ÿ’พ Simple cache for AsyncStorage
JavaScript
23
star
26

react-native-modest-storage

๐Ÿ’พ A modest wrapper around the AsyncStorage API
JavaScript
22
star
27

clipd

๐Ÿ“Ž Puny < 0.5kb copy to clipboard library
JavaScript
22
star
28

react-native-fetch

๐ŸŒFetch API wrapped as a component with support for retries & timeouts
JavaScript
20
star
29

shell-exec

Execute a command through the system shell
TypeScript
20
star
30

sort-by-distance

Sort array of points based on how close they are to a givin point
TypeScript
18
star
31

tenacious-fetch

Tiny fetch API wrapper to add support for retries with linear & exponential backoff and timeouts (651 Bytes)
JavaScript
17
star
32

jquery-bindings

Simple two-way data binding using proxies and requestIdleCallback
HTML
17
star
33

vs-code-js-hacker-pack

Opinionated collection of Visual Studio Code extensions focused on Javascript development
17
star
34

prettycoins

Get cryptocurrency info in your terminal
JavaScript
15
star
35

ra-auth-firebase

Firebase auth provider for React Admin
JavaScript
13
star
36

luno-api

Luno API wrapper
JavaScript
13
star
37

pkg-rename

CLI to quickly rename a npm package
JavaScript
13
star
38

react-native-log-level

Multi level logger for React Native
JavaScript
12
star
39

react-native-bouncy-touchable

A bouncing touchable animated view
JavaScript
12
star
40

react-native-scaling-utils

Simple scaling utilities for React Native
JavaScript
12
star
41

fuzzy-finder

๐Ÿ”Ž Tiny fuzzy searcher (356 Bytes gzipped)
JavaScript
11
star
42

enforce-branch-name

Little utility to be used in conjunction with Husky to enforce a branch naming convention
JavaScript
10
star
43

svelte-autocomplete-select

Flexible, zero-dependency Autocomplete component for Svelte
Svelte
10
star
44

image-to-uri

Convert image file to data URI
JavaScript
9
star
45

formik-error-focus

Scroll to the first error in your Formik form and set focus
TypeScript
9
star
46

react-native-sms-linking

Simple Linking API wrapper to send SMS
JavaScript
8
star
47

valid-south-african-id

๐Ÿ‡ฟ๐Ÿ‡ฆ Perform regex and checksum match to check if given number string is a valid South African ID
JavaScript
8
star
48

reading

๐Ÿ“–
7
star
49

get-google-sheet

When you just need to get a public google sheet as JSON
TypeScript
7
star
50

tabby-mctabface

Nifty tab manager
JavaScript
7
star
51

flatten-unflatten

Flatten or unflatten a object (512 bytes)
JavaScript
6
star
52

react-native-retriable-fetch

๐ŸŒ DEPRECATED: use tenacious-fetch
JavaScript
6
star
53

react-native-view-finder

A flexible little View Finder component to be used in conjunction with react-native-camera
JavaScript
6
star
54

blob-to-base64

Convert Blob to base64
HTML
6
star
55

react-keycloak-context

A Keycloak provider for React
JavaScript
5
star
56

brewski

๐Ÿบ A artisan web microframework
JavaScript
5
star
57

clippy

Nifty little clipboard manager build with Electron
JavaScript
4
star
58

magnet-link-regex

Regex for magnet link
JavaScript
4
star
59

next-circular-dependency

Detect circular dependencies in your Next.js app
JavaScript
4
star
60

colors-regex

Regular expressions for rgb, rgba, hex, hexa, hsl & hsla colors
JavaScript
4
star
61

feature-flip

Flexible React & React Native feature flagging/flipping/toggling for simple use cases
TypeScript
4
star
62

react-pagemap

React wrapper for pagemap. Mini map for web pages.
JavaScript
4
star
63

license-o-matic

Generate SPDX license with ease
JavaScript
4
star
64

get-them-args

Parse argument options
JavaScript
4
star
65

react-qr-image

Generate a QR Image for your React app
TypeScript
4
star
66

slothy

Modern lazy loading of images
JavaScript
4
star
67

react-native-simple-snippets

โœ‚๏ธ A collection of React Native related snippets for VS Code
JavaScript
4
star
68

wedding

du Plessis wedding site
HTML
3
star
69

styled-funcs

Set of utility functions for working with styled components
JavaScript
3
star
70

keycloak-theme-starter

Starter theme for keycloak
FreeMarker
3
star
71

json-reader-writer

Read or write to a JSON file synchronously
JavaScript
3
star
72

mebin

A personal information manager build with react-admin & Firebase
JavaScript
3
star
73

piratebay-search

Quickly search Piratebay ๐Ÿดโ€โ˜ ๏ธ
JavaScript
3
star
74

gulp-inject-envs

Gulp plugin to inject environment variables
JavaScript
3
star
75

react-jam-icons

Jam icons as React Components via svgr
JavaScript
3
star
76

srt-to-ass-cli

Convert subtitles (SRT) to Advanced Substation Alpha (ASS)
JavaScript
3
star
77

assetflow-admin

Barebones asset management system build with react-admin
JavaScript
3
star
78

react-easy-hooks

๐ŸŽฃ Collection of useful React hooks
JavaScript
3
star
79

fittxt

Modernized FitText.js
JavaScript
3
star
80

easy-password-gen

Generate a random password
JavaScript
3
star
81

tiaanduplessis

2
star
82

check-please

Simple, composable validation
JavaScript
2
star
83

ra-data-firebase

Firebase data provider for React Admin
JavaScript
2
star
84

pkg-readme

Generate a Standard Readme Style compliant README from your package.json
JavaScript
2
star
85

resume

Tiaan du Plessis's rรฉsumรฉ
JavaScript
2
star
86

piggy-bank

๐Ÿท Just a local, JSON based persistence option ๐Ÿท
JavaScript
2
star
87

prompt

A minimal bash prompt with git info ๐Ÿ’ป
Shell
2
star
88

next-styled-nprogress

Add NProgress loader between pages in your Next.js App
JavaScript
2
star
89

mod10-check-digit

Calculate the check digit(mod10 algorithm)
JavaScript
2
star
90

gummybear-browser

Simple little browser build with Expo
JavaScript
2
star
91

compare-obj

Recursively compare 2 objects on a property bases to get the difference
JavaScript
2
star
92

one-rep-max

Calculate the maximum amount of force that can be generated in one maximal contraction
JavaScript
2
star
93

just-toasty

Simple, customisable toast notifications
JavaScript
2
star
94

get-random-excuse

Get a random excuse
JavaScript
2
star
95

sa-company-registration-number-regex

Regular expression for matching South African Company Registration Number
JavaScript
2
star
96

react-native-modest-app-link

Link to other app with Play Store/App Store fallback
JavaScript
2
star
97

template-lib

๐Ÿ”จ Scaffold a Javascript library
JavaScript
2
star
98

gulp-prettier-eslint

Gulp plugin for prettier-eslint
JavaScript
2
star
99

caaf

CLI tool for minification, purification and optimization of HTML, JS, CSS and image assets
JavaScript
2
star
100

rickrollme

People should lock their PCs
JavaScript
2
star