Skip to content
This repository has been archived by the owner on Dec 14, 2019. It is now read-only.

Updates dependencies and adds custom status class management #2

Merged
merged 1 commit into from
Mar 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# 1.3.0 - 2019-03-27

### Adds

- Adds: Pjax manages the `HTML` status classes that developers can use to manage page transitions/animations

### Fixes

- Fixes: switches dependencies to use the version provided by `@codewithkyle`

# 1.2.5 - 2019-03-24

### Fixes
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,12 @@ document.addEventListener('pjax:complete', ()=>{ console.log('Event: pjax:comple
```

Pjax listens for a `pjax:continue` event on the `document`. This is only used when the `customTransitions` option is set to `true`. Pjax will **NOT** swap content until it recieves this event.

### Status Classes
Pjax sets two custom status classes on the `document` element that you can use in your CSS to style your page transitions. In the example below we set all elements to use the `wait` cursor while the `dom-is-loading` class is set. Once the `pjax:complete` or `pjax:error` events fire the `dom-is-loading` class is removed and the `dom-is-loaded` class is applied.

```
HTML.dom-is-loading *{
cursor: wait !important;
}
```
4,948 changes: 4,948 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codewithkyle/pjax",
"version": "1.2.5",
"version": "1.3.0",
"description": "A TypeScript module for handling AJAX page navigation using XMLHttpRequests.",
"keywords": [
"pjax",
Expand Down
137 changes: 73 additions & 64 deletions pjax.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading