0.2.20

Small and simple CSS & JavaScript library with interesting features

JS plugins

Animate

Appear

Appeared
Visible

Device

Form

Form fields binding.
...
Simple calculator
+ =
Custom logic

Lazyload

Image loaded lazy.

Lib

x.lib.random(1000, 100000) →
x.lib.number() →
x.lib.numberDecline(, 'item', 'items', 'items') →
x.lib.isEmail('hello@mail.dev') →
x.lib.isEmail('hello@mail') →
x.lib.makePassword(8) →

Loadmore

Load new data on content scrolling.

Posts

Modal

API call:
x.modal.show('modalExampleTest')

Test modal

John was a young man who lived in a small town. He had always dreamed of traveling the world and seeing new places. One day, he decided to pack his bags and go on a journey.

He first went to Europe, where he visited many countries. He saw the Eiffel Tower in Paris, the Coliseum in Rome, and the canals of Venice. He also tried local food and drinks, which were very delicious.

After Europe, John went to Asia. There he explored the temples of India, the Great Wall of China, and the rice fields of Japan. He learned about different cultures and religions, which made him more open-minded.

Finally, John came back home, but he knew that he would soon go on another adventure. His travels had given him a lot of new experiences and knowledge, and he was ready for more.

Modal in modal

Opening this window, you are not closed all the other windows on the page.

Sheets

Once I saw a little bird outside my window. It was chirping happily and looking for food. I put some seeds on the windowsill, and it ate them right away.
Once I saw a ship on the sea. It was sailing smoothly and leaving a trail in the water. The sun was setting, making the scene even more beautiful.
Once I saw a little bird outside my window. It was chirping happily and looking for food. I put some seeds on the windowsill, and it ate them right away.
Once I saw a ship on the sea. It was sailing smoothly and leaving a trail in the water. The sun was setting, making the scene even more beautiful.
🙂
😕

Slides

Move cursor on photo.
Not working on mobile :)
Slides

Hover and mouseover photos slider.

Working only on desktops.

✍🏻 Documentation in progress

Start usage

HTML

Manually download x.js and x.css and connect them in HTML.

In the <head> tag, as first style.

<link rel="stylesheet" href="x.css"/>

At the end of page, before </body> tag, as first script.

<script src="x.js"></script> <script>x.init();</script>

NPM

Install package in project folder:

$ npm i @andreyshpigunov/x

Import module in app.js:

import { x } from '@andreyshpigunov/x'; x.init();

Best way to connect styles, download them from CDN and import manually in app.css:

@import "../components/x.css";

CDN links

Latest release:
https://cdn.jsdelivr.net/gh/andreyshpigunov/x@1.0.0/dist/x.css
https://cdn.jsdelivr.net/gh/andreyshpigunov/x@1.0.0/dist/x.js

Latest build:
https://cdn.jsdelivr.net/gh/andreyshpigunov/x@latest/dist/x.css
https://cdn.jsdelivr.net/gh/andreyshpigunov/x@latest/dist/x.js


Project on GitHub

https://github.com/andreyshpigunov/x


Тестовое окошко

Вот так просто оно выглядит. Данная страница тоже показана в модальном окне.

Закрыть