# aero-ajax

> Ajaxify your Aero site. Add the CSS class 'ajax' to any link on the site.

Latest version **1.0.1** (published 2016-10-15) · 0 weekly downloads

## Install

```sh
npm install aero-ajax
pnpm add aero-ajax
yarn add aero-ajax
bun add aero-ajax
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-10-15 |
| First published | 2016-02-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Eduard Urbach |
| Maintainers | blitzprog |
| Keywords | aero, ajax |

## Links

- npm: https://www.npmjs.com/package/aero-ajax
- Repository: https://github.com/aerojs/aero-ajax
- Homepage: https://github.com/aerojs/aero-ajax#readme
- Issues: https://github.com/aerojs/aero-ajax/issues
- npm.io page: https://npm.io/package/aero-ajax

## Recent versions

- 1.0.1 (latest) — 2016-10-15
- 1.0.0 — 2016-09-28
- 0.9.1 — 2016-09-28
- 0.9.0 — 2016-09-28
- 0.8.3 — 2016-09-27
- 0.8.2 — 2016-09-27
- 0.8.1 — 2016-09-27
- 0.8.0 — 2016-09-25
- 0.7.9 — 2016-09-24
- 0.7.8 — 2016-09-21
- 0.7.7 — 2016-09-21
- 0.7.6 — 2016-09-01
- 0.7.5 — 2016-09-01
- 0.7.4 — 2016-09-01
- 0.7.3 — 2016-08-31
- … 16 more at https://npm.io/package/aero-ajax/versions

## README

# aero-ajax
Lightweight ajaxification plugin for [Aero](https://github.com/aerojs/aero) using high-performance CSS transitions.

## Installation
Add `aero-ajax` to `dependencies` in your `package.json`:

```json
"dependencies": {
	"aero-ajax": "*"
}
```

## Preparation

You need to define your `main` element with the ID `content` in your layout template:

```jade
main#content!= content
```

However this plugin requires user-defined CSS transitions for enhanced performance and flexibility. Therefore you also need to add a `fade` class:

```jade
main#content.fade!= content
```

Then define which animation you want for page swaps. Add `fade.styl` in `styles`:

```stylus
.fade
	opacity 1
	will-change opacity
	transition opacity 200ms ease

.fade-out
	opacity 0
```

## Usage
Let's say you have a link on your page:

```jade
a(href='/contact') Contact
```

Simply add the `ajax` class to make it load the page via AJAX requests:

```jade
a.ajax(href='/contact') Contact
```

---
_Source: https://npm.io/package/aero-ajax · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
