Comparing version 0.3.7 to 0.3.8
{ | ||
"name": "swup", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"description": "Animated page transitions with css.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -219,3 +219,7 @@ # swup | ||
### Page Class Prefix | ||
Some CSS styles are very often based on the class of the page defined in the body element. Swup replaces the body classes for each loaded page. However, the site may use the body class attribute for functionality such as opening of some sort of menu by adding class to the body element. In that case, you may want to define a prefix for your page style classes such as `page-`, so only those are replaced. By default option is set to `''` and all classes of body element are replaced during the transition. | ||
Some CSS styles are very often based on the class of the page defined in the body element. | ||
Swup replaces the body classes for each loaded page. However, the site may use the body class attribute for functionality such as opening of some sort of menu by adding class to the body element. | ||
In that case, you may want to define a prefix for your page style classes such as `page-`, so only those are replaced. | ||
By default option is set to `''` and all classes of body element are replaced during the transition. | ||
In case the class attribute on body is not used at all, the class replacement can be disabled all together by setting the option to `false`. | ||
```javascript | ||
@@ -222,0 +226,0 @@ pageClassPrefix: '' |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
130203
391