
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
nativescript-ngx-slides
Advanced tools
videos are from the NativeScript Slides plugin. all features may not be implemented yet.
videos by Brad Martin
import { SlidesModule } from "nativescript-ngx-slides";
import { AppComponent } from "./app.component";
@NgModule({
declarations: [AppComponent],
bootstrap: [AppComponent],
imports: [NativeScriptModule, SlidesModule],
schemas: [NO_ERRORS_SCHEMA]
})
export class AppModule {}
<slides>
<slide class="slide-1">
<Label text="This is Panel 1"></Label>
</slide>
<slide class="slide-2">
<Label text="This is Panel 2"></Label>
</slide>
<slide class="slide-3">
<Label text="This is Panel 3"></Label>
</slide>
<slide class="slide-4">
<Label text="This is Panel 4"></Label>
</slide>
<slide class="slide-5">
<Label text="This is Panel 5"></Label>
</slide>
</slides>
place this in the app.css file in the root of your project.
.slide-1 {
background-color: darkslateblue;
}
.slide-2 {
background-color: darkcyan;
}
.slide-3 {
background-color: darkgreen;
}
.slide-4 {
background-color: darkgoldenrod;
}
.slide-5 {
background-color: darkslategray;
}
label {
text-align: center;
width: 100%;
font-size: 35;
margin-top: 35;
color: #fff;
}
Great for Intros/Tutorials to Image Carousels.
This very much a work in progress. Please feel free to contribute.
loop : boolean - If true will cause the slide to be an endless loop. The suggested use case would be for a Image Carousel or something of that nature.
pageIndicators : boolean - If true adds indicator dots to the bottom of your slides.
swipeSpeed : number - Determines the speed of swipe. The bigger swipeSpeed
property is, the faster you swipe the slides. Default value is 3. Try changing it to 15 to see the result.
If the property pageIndicators
is true
you won't see the page indicators anymore as of 2.0.0 right away. there are two css classes exposed that you can setup however you like for active and inactive indicators. below is an example for semi translucent dots.
.slide-indicator-inactive {
background-color: #fff;
opacity: 0.4;
width: 10;
height: 10;
margin-left: 2.5;
margin-right: 2.5;
margin-top: 0;
border-radius: 5;
}
.slide-indicator-active {
background-color: #fff;
opacity: 0.9;
width: 10;
height: 10;
margin-left: 2.5;
margin-right: 2.5;
margin-top: 0;
border-radius: 5;
}
npm install
to prepare the projectnpm run android
or npm run ios
npm run build
Josh Sommer | dobjek | Eddy Verbruggen | Codeback Software |
for {N} version 2.0.0+
FAQs
NativeScript + Angular version of the slides
The npm package nativescript-ngx-slides receives a total of 5 weekly downloads. As such, nativescript-ngx-slides popularity was classified as not popular.
We found that nativescript-ngx-slides demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.