All Projects → d2phap → Fluent Reveal Effect

d2phap / Fluent Reveal Effect

Licence: mit
Fluent Reveal Effect JavaScript library for web

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Fluent Reveal Effect

Daisyui
⭐️ ⭐️ ⭐️ ⭐️ ⭐️  Tailwind Components
Stars: ✭ 382 (+132.93%)
Mutual labels:  css-framework, ui-kit, ui-components
Css Mint
Lightweight and simple to use UI Kit. Fully responsive, just 3KB gzipped.
Stars: ✭ 209 (+27.44%)
Mutual labels:  css-framework, ui-kit, ui-components
Collectionviewslantedlayout
A CollectionView Layout displaying a slanted cells
Stars: ✭ 2,029 (+1137.2%)
Mutual labels:  ui-kit, ui-components
Vitamin Web
Decathlon Design System libraries for web applications
Stars: ✭ 70 (-57.32%)
Mutual labels:  ui-kit, ui-components
Citrus.avalonia
Modern styles for Avalonia controls.
Stars: ✭ 161 (-1.83%)
Mutual labels:  ui-kit, ui-components
React Ui Kits
A list of UI Kits available for React and React Native.
Stars: ✭ 159 (-3.05%)
Mutual labels:  ui-kit, ui-components
React Native Elements App
Demo app for React Native Elements (w/ React Native Web)
Stars: ✭ 1,159 (+606.71%)
Mutual labels:  ui-kit, ui-components
Antv
Ant Design of Vue.js 2.0
Stars: ✭ 99 (-39.63%)
Mutual labels:  ui-kit, ui-components
Elm Ui
UI library for making web applications with Elm
Stars: ✭ 878 (+435.37%)
Mutual labels:  ui-kit, ui-components
Mobiscroll
Cross platform UI controls for progressive web and hybrid apps (plain JS, jQuery, Angular and React)
Stars: ✭ 1,510 (+820.73%)
Mutual labels:  ui-kit, ui-components
Web Client
Generic Linked Data browser and UX component framework. Apache license.
Stars: ✭ 105 (-35.98%)
Mutual labels:  ui-kit, ui-components
Svelte Chota
Svelte UI components based on super lightweight chota CSS framework.
Stars: ✭ 157 (-4.27%)
Mutual labels:  ui-kit, ui-components
Snackui
SnackUI 🍑 - the final React style library. With an *optimizing compiler* that lets you write views naturally, with easier DX, working on native and web at once, all while being faster than hand-rolling your own CSS.
Stars: ✭ 55 (-66.46%)
Mutual labels:  ui-kit, ui-components
Vuestic Admin
Free and Beautiful Vue 3 Admin Template
Stars: ✭ 8,398 (+5020.73%)
Mutual labels:  ui-kit, ui-components
Bem Kit
💄 CSS UI kit with BEM convention and SASS
Stars: ✭ 69 (-57.93%)
Mutual labels:  css-framework, ui-components
Vuetify
🐉 Material Component Framework for Vue
Stars: ✭ 33,085 (+20073.78%)
Mutual labels:  ui-kit, ui-components
Rn Components Kit
A series of commonly used react-native components
Stars: ✭ 79 (-51.83%)
Mutual labels:  ui-kit, ui-components
Components
MobileUI was created thinking of making your hybrid application faster and smaller since you only install what you are really going to use for UI.
Stars: ✭ 125 (-23.78%)
Mutual labels:  ui-kit, ui-components
Sugui Design System
A design system template for the SugUI components library based on styleguidist
Stars: ✭ 17 (-89.63%)
Mutual labels:  ui-kit, ui-components
Base
React-UI-Kit - frontend library with ReactJS components
Stars: ✭ 18 (-89.02%)
Mutual labels:  ui-kit, ui-components

Reveal Effect library (Fluent Design System)

Apply reveal effect to border and background of elements.

FOSSA Status

Screenshot

Demo

Install

Run the command

npm i [email protected]

NPM package: https://www.npmjs.com/package/fluent-reveal-effect

Usage

Import the library

import { FluentRevealEffect } from "fluent-reveal-effect"

Basic CSS

.btn {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	padding: 1rem 2rem;
	background-color: #333;
	color: #fff;
	border: 0;
	
	transition: all 200ms ease;
}
.btn-border {
	display: inline-block;
	margin: 5px;
}
.btn-border .btn {
	display: block;
	margin: 2px;
}

Apply background effect

HTML mockup

<button class="btn">Button 1</button>

JavaScript

FluentRevealEffect.applyEffect(".btn", {
	lightColor: "rgba(255,255,255,0.1)",
	gradientSize: 150
})

Enable Ripple click effect

FluentRevealEffect.applyEffect(".btn", {
	clickEffect: true
})

Apply border and background effect

HTML mockup

<div class="effect-group-container">
    <div class="btn-border">
        <button class="btn">Button 2</button>
    </div>
    <div class="btn-border">
        <button class="btn">Button 3</button>
    </div>
    <div class="btn-border">
        <button class="btn">Button 4</button>
    </div>
</div>

JavaScript

FluentRevealEffect.applyEffect(".effect-group-container", {
	clickEffect: true,
	lightColor: "rgba(255,255,255,0.6)",
	gradientSize: 80,
	isContainer: true,
	children: {
		borderSelector: ".btn-border",
		elementSelector: ".btn",
		lightColor: "rgba(255,255,255,0.3)",
		gradientSize: 150
	}
})

Donate

If you feel this little library useful to you, it would go a great way to ensuring that I can afford to take the time to continue to develop it.

Thanks for your gratitude and finance help!

Buy me a beer?

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].