iso8859 / BlazorWheelZoom

Zoom and move image with Blazor - minimal javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BlazorWheelZoom

Zoom and move image with Blazor - minimal javascript

animation

Demo site https://blazorwheelzoom.azurewebsites.net/

Add nuget package iso8859.blazor.wheel-zoom

server side blazor webassembly blazor
in Pages/_Host.chtml in wwwroot/index.html
<body>
...
<script src="_content/iso8859.blazor.wheel-zoom/wheelzoomblazor.js"></script>
</body>

for both in _Imports.razor

@using BlazorWheelZoomLibrary.Shared

Use the component in your razor page

<WheelZoom Image="/mire.png" width="500" height="500" />

If you want a border

<div style="border: thin solid green; width: 510px; height: 510px; padding: 5px;">
    <WheelZoom Image="/mire.png" width="500" height="500" />
</div>

About

Zoom and move image with Blazor - minimal javascript

License:Apache License 2.0


Languages

Language:HTML 50.2%Language:C# 29.6%Language:CSS 19.1%Language:JavaScript 1.1%